diff --git a/TRex/App/UI/MenuBarItem.swift b/TRex/App/UI/MenuBarItem.swift index d51b7a4..4f834e4 100644 --- a/TRex/App/UI/MenuBarItem.swift +++ b/TRex/App/UI/MenuBarItem.swift @@ -85,15 +85,6 @@ class MenubarItem: NSObject { @objc func showPreferences() { NSApp.openSettings() return -// if #available(macOS 14.0, *) { -// NSApp.sendAction(Selector(("showSettingsWindow:")), to: nil, from: nil) -// return -// } -// if #available(macOS 13.0, *) { -// NSApp.sendAction(Selector(("showSettingsWindow:")), to: nil, from: nil) -// return -// } -// NSApp.sendAction(Selector(("showPreferencesWindow:")), to: nil, from: nil) } } diff --git a/TRex/AppDelegate.swift b/TRex/AppDelegate.swift index 3c18626..b6cef27 100644 --- a/TRex/AppDelegate.swift +++ b/TRex/AppDelegate.swift @@ -50,7 +50,7 @@ class AppDelegate: NSObject, NSApplicationDelegate { case "captureclipboardautomation": trex.capture(.captureClipboardAndTriggerAutomation) case "showpreferences": - NSApp.sendAction(Selector(("showPreferencesWindow:")), to: nil, from: nil) + NSApp.openSettings() case "shortcut": if let name = url.queryParameters?["name"] { preferences.autoRunShortcut = name