Restrict OPML import for Account types that don't support it

This commit is contained in:
Maurice Parker
2019-06-19 17:50:32 -05:00
parent b4b80c51bc
commit 74f84dc000
8 changed files with 44 additions and 157 deletions

View File

@@ -26,6 +26,10 @@ class ImportOPMLWindowController: NSWindowController {
for oneAccount in AccountManager.shared.sortedActiveAccounts {
if !oneAccount.isOPMLImportSupported {
continue
}
let oneMenuItem = NSMenuItem()
oneMenuItem.title = oneAccount.nameForDisplay
oneMenuItem.representedObject = oneAccount