From e9df18c067d69192ec8ef9e94c7105b0103f1a2e Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sat, 8 Mar 2025 12:34:25 -0800 Subject: [PATCH] Bug Fix: Disable hotkeys on macOS older than 15.0 Apparently even touching the NSUserDefaults with MASShortcut there is crash inducing. Signed-off-by: Christopher Snowhill --- Application/AppController.m | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Application/AppController.m b/Application/AppController.m index cc543501a..4822b35e2 100644 --- a/Application/AppController.m +++ b/Application/AppController.m @@ -209,9 +209,11 @@ static BOOL consentLastEnabled = NO; [randomizeButton setToolTip:NSLocalizedString(@"RandomizeButtonTooltip", @"")]; [fileButton setToolTip:NSLocalizedString(@"FileButtonTooltip", @"")]; - [self registerDefaultHotKeys]; - - [self registerHotKeys]; + if(@available(macOS 15, *)) { + [self registerDefaultHotKeys]; + + [self registerHotKeys]; + } (void)[spotlightWindowController init];