Remove showAddRedditFeedWindow function and all references to it.
This commit is contained in:
parent
a74dd2d129
commit
007f077542
|
@ -478,13 +478,6 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations,
|
||||||
return !isDisplayingSheet && !AccountManager.shared.activeAccounts.isEmpty
|
return !isDisplayingSheet && !AccountManager.shared.activeAccounts.isEmpty
|
||||||
}
|
}
|
||||||
|
|
||||||
if item.action == #selector(showAddRedditFeedWindow(_:)) {
|
|
||||||
guard !isDisplayingSheet && isSpecialAccountAvailable && ExtensionPointManager.shared.isRedditEnabled else {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
return ExtensionPointManager.shared.isRedditEnabled
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !MAC_APP_STORE
|
#if !MAC_APP_STORE
|
||||||
if item.action == #selector(toggleWebInspectorEnabled(_:)) {
|
if item.action == #selector(toggleWebInspectorEnabled(_:)) {
|
||||||
(item as! NSMenuItem).state = AppDefaults.shared.webInspectorEnabled ? .on : .off
|
(item as! NSMenuItem).state = AppDefaults.shared.webInspectorEnabled ? .on : .off
|
||||||
|
@ -558,12 +551,6 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations,
|
||||||
addWebFeed(nil)
|
addWebFeed(nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
@IBAction func showAddRedditFeedWindow(_ sender: Any?) {
|
|
||||||
createAndShowMainWindowIfNecessary()
|
|
||||||
addFeedController = AddFeedController(hostWindow: mainWindowController!.window!)
|
|
||||||
addFeedController?.showAddFeedSheet(.redditFeed)
|
|
||||||
}
|
|
||||||
|
|
||||||
@IBAction func showAddFolderWindow(_ sender: Any?) {
|
@IBAction func showAddFolderWindow(_ sender: Any?) {
|
||||||
createAndShowMainWindowIfNecessary()
|
createAndShowMainWindowIfNecessary()
|
||||||
showAddFolderSheetOnWindow(mainWindowController!.window!)
|
showAddFolderSheetOnWindow(mainWindowController!.window!)
|
||||||
|
|
|
@ -1441,11 +1441,6 @@ private extension MainWindowController {
|
||||||
newWebFeedItem.action = Selector(("showAddWebFeedWindow:"))
|
newWebFeedItem.action = Selector(("showAddWebFeedWindow:"))
|
||||||
menu.addItem(newWebFeedItem)
|
menu.addItem(newWebFeedItem)
|
||||||
|
|
||||||
let newRedditFeedItem = NSMenuItem()
|
|
||||||
newRedditFeedItem.title = NSLocalizedString("New Reddit Feed…", comment: "New Reddit Feed")
|
|
||||||
newRedditFeedItem.action = Selector(("showAddRedditFeedWindow:"))
|
|
||||||
menu.addItem(newRedditFeedItem)
|
|
||||||
|
|
||||||
let newFolderFeedItem = NSMenuItem()
|
let newFolderFeedItem = NSMenuItem()
|
||||||
newFolderFeedItem.title = NSLocalizedString("New Folder…", comment: "New Folder")
|
newFolderFeedItem.title = NSLocalizedString("New Folder…", comment: "New Folder")
|
||||||
newFolderFeedItem.action = Selector(("showAddFolderWindow:"))
|
newFolderFeedItem.action = Selector(("showAddFolderWindow:"))
|
||||||
|
|
Loading…
Reference in New Issue