From d99eda15b5db557fbfd349adac8395b78fdaa5ea Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Fri, 7 Mar 2025 17:51:17 -0800 Subject: [PATCH] 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 --- .../Preferences/GeneralPreferencesPlugin.m | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/Preferences/Preferences/GeneralPreferencesPlugin.m b/Preferences/Preferences/GeneralPreferencesPlugin.m index a89a43825..105349f87 100644 --- a/Preferences/Preferences/GeneralPreferencesPlugin.m +++ b/Preferences/Preferences/GeneralPreferencesPlugin.m @@ -42,14 +42,24 @@ owner:plugin topLevelObjects:nil]; - return @[[plugin playlistPane], - [plugin hotKeyPane], - [plugin outputPane], - [plugin generalPane], - [plugin notificationsPane], - [plugin appearancePane], - [plugin midiPane], - [plugin rubberbandPane]]; + if(@available(macOS 15, *)) { + return @[[plugin playlistPane], + [plugin hotKeyPane], + [plugin outputPane], + [plugin generalPane], + [plugin notificationsPane], + [plugin appearancePane], + [plugin midiPane], + [plugin rubberbandPane]]; + } else { + return @[[plugin playlistPane], + [plugin outputPane], + [plugin generalPane], + [plugin notificationsPane], + [plugin appearancePane], + [plugin midiPane], + [plugin rubberbandPane]]; + } } - (HotKeyPane *)hotKeyPane {