From 0c8ec225b5a998792ddcbf626687cd3a28ec4523 Mon Sep 17 00:00:00 2001 From: Lukas <134181853+bo2themax@users.noreply.github.com> Date: Sat, 1 Aug 2026 16:38:52 +0200 Subject: [PATCH] macOS: remove unused menu validations --- .../Sources/Features/Update/UpdateController.swift | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/macos/Sources/Features/Update/UpdateController.swift b/macos/Sources/Features/Update/UpdateController.swift index 2b91854f2..e88a4e3b9 100644 --- a/macos/Sources/Features/Update/UpdateController.swift +++ b/macos/Sources/Features/Update/UpdateController.swift @@ -59,7 +59,7 @@ class UpdateController { /// Check for updates. /// /// This is typically connected to a menu item action. - @objc func checkForUpdates() { + func checkForUpdates() { // If we're already idle, then just check for updates immediately. if viewModel.state == .idle { updater.checkForUpdates() @@ -100,17 +100,6 @@ class UpdateController { self?.updater.checkForUpdates() } } - - /// Validate the check for updates menu item. - /// - /// - Parameter item: The menu item to validate - /// - Returns: Whether the menu item should be enabled - func validateMenuItem(_ item: NSMenuItem) -> Bool { - if item.action == #selector(checkForUpdates) { - return updater.canCheckForUpdates - } - return true - } } private struct InstallingAccessoryView: View {