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 afeb614481
commit 442dfb726b

View file

@ -185,9 +185,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];