Skip to content

Conversation

@jcsteh
Copy link
Owner

@jcsteh jcsteh commented Mar 24, 2025

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.
Fixes #1218.

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.
@jcsteh
Copy link
Owner Author

jcsteh commented Mar 24, 2025

I haven't actually tested this yet on Mac. If someone is able to do that with the build that should arrive here in a few minutes, I'd be grateful.

@github-actions
Copy link
Contributor

@tbdalgaard
Copy link

tbdalgaard commented Mar 24, 2025 via email

@jennykbrennan
Copy link
Contributor

Nice. All Osara menu items trigger just as they are supposed to here. Cheers!

@tbdalgaard
Copy link

Same results as @jennykbrennan says. NICE work!

@jcsteh jcsteh merged commit 9bc1ce0 into master Mar 24, 2025
3 checks passed
@jcsteh jcsteh deleted the macMenu branch March 24, 2025 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mac: Menu items does not trigger the expected action

4 participants