Disable global hotkeys again for macOS < 15.0
Clearly, NSUserDefaults bindings were not really meant to be used in practice at all, as they do nothing but crash the app. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
6036000214
commit
05f2434462
2 changed files with 27 additions and 14 deletions
|
@ -210,11 +210,13 @@ 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 migrateHotKeys];
|
|
||||||
|
[self migrateHotKeys];
|
||||||
[self registerHotKeys];
|
|
||||||
|
[self registerHotKeys];
|
||||||
|
}
|
||||||
|
|
||||||
(void)[spotlightWindowController init];
|
(void)[spotlightWindowController init];
|
||||||
|
|
||||||
|
|
|
@ -41,15 +41,26 @@
|
||||||
[[NSBundle bundleWithIdentifier:@"org.cogx.cog.preferences"] loadNibNamed:@"Preferences"
|
[[NSBundle bundleWithIdentifier:@"org.cogx.cog.preferences"] loadNibNamed:@"Preferences"
|
||||||
owner:plugin
|
owner:plugin
|
||||||
topLevelObjects:nil];
|
topLevelObjects:nil];
|
||||||
return @[[plugin playlistPane],
|
if(@available(macos 15, *)) {
|
||||||
[plugin hotKeyPane],
|
return @[[plugin playlistPane],
|
||||||
[plugin updatesPane],
|
[plugin hotKeyPane],
|
||||||
[plugin outputPane],
|
[plugin updatesPane],
|
||||||
[plugin generalPane],
|
[plugin outputPane],
|
||||||
[plugin notificationsPane],
|
[plugin generalPane],
|
||||||
[plugin appearancePane],
|
[plugin notificationsPane],
|
||||||
[plugin midiPane],
|
[plugin appearancePane],
|
||||||
[plugin rubberbandPane]];
|
[plugin midiPane],
|
||||||
|
[plugin rubberbandPane]];
|
||||||
|
} else {
|
||||||
|
return @[[plugin playlistPane],
|
||||||
|
[plugin updatesPane],
|
||||||
|
[plugin outputPane],
|
||||||
|
[plugin generalPane],
|
||||||
|
[plugin notificationsPane],
|
||||||
|
[plugin appearancePane],
|
||||||
|
[plugin midiPane],
|
||||||
|
[plugin rubberbandPane]];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (HotKeyPane *)hotKeyPane {
|
- (HotKeyPane *)hotKeyPane {
|
||||||
|
|
Loading…
Reference in a new issue