From a8fa627c6b9171f718c79f8d0f8389d4be08afd1 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Fri, 30 Jun 2023 22:02:24 -0700 Subject: [PATCH] Get Mac app building. --- Mac/AppDelegate.swift | 1 - Mac/Inspector/WebFeedInspectorViewController.swift | 2 +- Mac/MainWindow/MainWindowController.swift | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) 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 }