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:
parent
c89e7396cd
commit
fd57ed12bb
1 changed files with 20 additions and 10 deletions
|
@ -41,16 +41,26 @@
|
|||
[[NSBundle bundleWithIdentifier:@"org.cogx.cog.preferences"] loadNibNamed:@"Preferences"
|
||||
owner:plugin
|
||||
topLevelObjects:nil];
|
||||
|
||||
return @[[plugin playlistPane],
|
||||
[plugin hotKeyPane],
|
||||
[plugin updatesPane],
|
||||
[plugin outputPane],
|
||||
[plugin generalPane],
|
||||
[plugin notificationsPane],
|
||||
[plugin appearancePane],
|
||||
[plugin midiPane],
|
||||
[plugin rubberbandPane]];
|
||||
if(@available(macOS 15, *)) {
|
||||
return @[[plugin playlistPane],
|
||||
[plugin hotKeyPane],
|
||||
[plugin updatesPane],
|
||||
[plugin outputPane],
|
||||
[plugin generalPane],
|
||||
[plugin notificationsPane],
|
||||
[plugin appearancePane],
|
||||
[plugin midiPane],
|
||||
[plugin rubberbandPane]];
|
||||
} else {
|
||||
return @[[plugin playlistPane],
|
||||
[plugin updatesPane],
|
||||
[plugin outputPane],
|
||||
[plugin generalPane],
|
||||
[plugin notificationsPane],
|
||||
[plugin appearancePane],
|
||||
[plugin midiPane],
|
||||
[plugin rubberbandPane]];
|
||||
}
|
||||
}
|
||||
|
||||
- (HotKeyPane *)hotKeyPane {
|
||||
|
|
Loading…
Reference in a new issue