diff --git a/Mac/AppDelegate.swift b/Mac/AppDelegate.swift index ee430573e..42f362075 100644 --- a/Mac/AppDelegate.swift +++ b/Mac/AppDelegate.swift @@ -492,7 +492,6 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations, } let isDisplayingSheet = mainWindowController?.isDisplayingSheet ?? false - let isSpecialAccountAvailable = AccountManager.shared.activeAccounts.contains(where: { $0.type == .onMyMac || $0.type == .cloudKit }) if item.action == #selector(refreshAll(_:)) { return !AccountManager.shared.refreshInProgress && !AccountManager.shared.activeAccounts.isEmpty diff --git a/Mac/Inspector/WebFeedInspectorViewController.swift b/Mac/Inspector/WebFeedInspectorViewController.swift index 816ea0842..eb402d607 100644 --- a/Mac/Inspector/WebFeedInspectorViewController.swift +++ b/Mac/Inspector/WebFeedInspectorViewController.swift @@ -140,7 +140,7 @@ private extension WebFeedInspectorViewController { updateIsReaderViewAlwaysOn() windowTitle = feed?.nameForDisplay ?? NSLocalizedString("window.title.feed-inspector", comment: "Feed Inspector") view.needsLayout = true - if let webfeed = feed { + if feed != nil { isReaderViewAlwaysOnCheckBox?.isEnabled = true } } diff --git a/Mac/MainWindow/MainWindowController.swift b/Mac/MainWindow/MainWindowController.swift index e327af466..0aa0c1e1f 100644 --- a/Mac/MainWindow/MainWindowController.swift +++ b/Mac/MainWindow/MainWindowController.swift @@ -1191,7 +1191,7 @@ private extension MainWindowController { return currentLink != nil } - if let webfeed = currentTimelineViewController?.selectedArticles.first?.webFeed { + if currentTimelineViewController?.selectedArticles.first?.webFeed != nil { toolbarButton.isEnabled = true }