Quote:
Originally Posted by ceanganb
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...