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 <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2025-03-08 12:34:25 -08:00
parent 3f4e35ed17
commit e9df18c067

View file

@ -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];