Get Mac app building.

This commit is contained in:
Brent Simmons
2023-06-30 22:02:24 -07:00
parent 8a9c680cfc
commit a8fa627c6b
3 changed files with 2 additions and 3 deletions

View File

@@ -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

View File

@@ -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
}
}

View File

@@ -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
}