From 03e452554bb6215bcf1f7c4fd218233cef67b642 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sun, 29 Mar 2026 14:52:06 -0700 Subject: [PATCH] =?UTF-8?q?Disable=20menu=20item=20to=20open=20iCloud=20st?= =?UTF-8?q?ats=20window=20when=20there=E2=80=99s=20no=20iCloud=20account.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Mac/AppDelegate.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Mac/AppDelegate.swift b/Mac/AppDelegate.swift index 4f7d067cf..b3a430369 100644 --- a/Mac/AppDelegate.swift +++ b/Mac/AppDelegate.swift @@ -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 }