You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix broken menu items in the Extensions -> OSARA menu on Mac. (issue #1218, PR #1219)
In #1180, OSARA started registering all commands shortly after startup instead of immediately on startup.
This was done to enable interception of SWS commands.
Unfortunately, this broke items in the OSARA menu on Mac.
Presumably, the menu hook gets called slightly earlier on Mac, before our commands get registered, and so our menu items can't be associated with the correct command.
To fix this, we now register OSARA's commands immediately on startup, but we continue to register other commands that we want to intercept slightly later.
Developers should note that OSARA's own commands are now listed in the OSARA_COMMANDS array, not the COMMANDS array.
{MAIN_SECTION, {DEFACCEL, _t("OSARA: Move to next item (leaving other items selected)")}, "OSARA_NEXTITEMKEEPSEL", cmdMoveToNextItemKeepSel},
5437
5440
{MAIN_SECTION, {DEFACCEL, _t("OSARA: Move to previous item (leaving other items selected)")}, "OSARA_PREVITEMKEEPSEL", cmdMoveToPrevItemKeepSel},
5438
5441
{MAIN_SECTION, {DEFACCEL, _t("OSARA: View properties for current media item/take/automation item (depending on focus)")}, "OSARA_PROPERTIES", cmdPropertiesFocus},
@@ -5526,8 +5529,8 @@ Command COMMANDS[] = {
5526
5529
#endif
5527
5530
{ MIDI_EVENT_LIST_SECTION, {DEFACCEL, _t("OSARA: Mute next message from OSARA")}, "OSARA_ML_MUTENEXTMESSAGE", cmdMuteNextMessage},
5528
5531
{ MEDIA_EXPLORER_SECTION, {DEFACCEL, _t("OSARA: Mute next message from OSARA")}, "OSARA_MX_MUTENEXTMESSAGE", cmdMuteNextMessage},
5529
-
{0, {}, nullptr, nullptr},
5530
5532
};
5533
+
5531
5534
map<pair<int, int>, Command*> commandsMap;
5532
5535
5533
5536
/*** Initialisation, termination and inner workings. */
0 commit comments