mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-05 03:37:41 +00:00
Disable menu item to open iCloud stats window when there’s no iCloud account.
This commit is contained in:
1 parent
3180372a57
commit
03e452554b
1 file changed
+4
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user