mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Don't allow users to add Reddit or Twitter feeds if they don't have an extension configured.
This commit is contained in:
@@ -423,8 +423,12 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
|
||||
alertController.addAction(addWebFeedAction)
|
||||
|
||||
if AccountManager.shared.activeAccounts.contains(where: { $0.type == .onMyMac || $0.type == .cloudKit }) {
|
||||
alertController.addAction(addRedditFeedAction)
|
||||
alertController.addAction(addTwitterFeedAction)
|
||||
if ExtensionPointManager.shared.isRedditEnabled {
|
||||
alertController.addAction(addRedditFeedAction)
|
||||
}
|
||||
if ExtensionPointManager.shared.isTwitterEnabled {
|
||||
alertController.addAction(addTwitterFeedAction)
|
||||
}
|
||||
}
|
||||
|
||||
alertController.addAction(addWebFolderAction)
|
||||
|
||||
Reference in New Issue
Block a user