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 {