Bug Fix: Disable hotkeys configuration on macOS<15

MASShortcutView is apparently buggy on older macOS versions. So everyone
there gets hard coded shortcuts and nothing else.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2025-03-07 17:51:17 -08:00
parent d3f99f8987
commit d99eda15b5

View file

@ -42,14 +42,24 @@
owner:plugin owner:plugin
topLevelObjects:nil]; topLevelObjects:nil];
return @[[plugin playlistPane], if(@available(macOS 15, *)) {
[plugin hotKeyPane], return @[[plugin playlistPane],
[plugin outputPane], [plugin hotKeyPane],
[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 outputPane],
[plugin generalPane],
[plugin notificationsPane],
[plugin appearancePane],
[plugin midiPane],
[plugin rubberbandPane]];
}
} }
- (HotKeyPane *)hotKeyPane { - (HotKeyPane *)hotKeyPane {