View Single Post
Old 03-21-2017, 07:35 PM   #62
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by ceanganb View Post
I really thought that defining the toggle state would automatically reflect in the actions list and also had something to do with the plugin state.
Well, the example code was confusing because it didn't do anything with the action toggle state since the toggle state was determined from the window visible property.

The hookcommandproc could toggle the state for the toggleable actions but it would need to take into account that the action callback might not want to allow changing the state immediately etc, so the responsibility of keeping track of the toggle state was left to the action callback functions. Many ways to do these things...
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote