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