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:
parent
afeb614481
commit
442dfb726b
1 changed files with 5 additions and 3 deletions
|
@ -185,9 +185,11 @@ static BOOL consentLastEnabled = NO;
|
||||||
[randomizeButton setToolTip:NSLocalizedString(@"RandomizeButtonTooltip", @"")];
|
[randomizeButton setToolTip:NSLocalizedString(@"RandomizeButtonTooltip", @"")];
|
||||||
[fileButton setToolTip:NSLocalizedString(@"FileButtonTooltip", @"")];
|
[fileButton setToolTip:NSLocalizedString(@"FileButtonTooltip", @"")];
|
||||||
|
|
||||||
|
if(@available(macOS 15, *)) {
|
||||||
[self registerDefaultHotKeys];
|
[self registerDefaultHotKeys];
|
||||||
|
|
||||||
[self registerHotKeys];
|
[self registerHotKeys];
|
||||||
|
}
|
||||||
|
|
||||||
(void)[spotlightWindowController init];
|
(void)[spotlightWindowController init];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue