Disable menu item to open iCloud stats window when there’s no iCloud account.

This commit is contained in:
Brent Simmons committed 2026-03-29 14:52:06 -07:00
1 parent 3180372a57
commit 03e452554b
1 file changed
+4
+4
View File
@@ -465,6 +465,10 @@ let appName = "NetNewsWire"
return !isDisplayingSheet && !AccountManager.shared.activeAccounts.isEmpty
}
if item.action == #selector(showCloudKitStats(_:)) {
return AccountManager.shared.hasiCloudAccount
}
if item.action == #selector(toggleWebInspectorEnabled(_:)) {
(item as! NSMenuItem).state = AppDefaults.shared.webInspectorEnabled ? .on : .off
}