Disable plugin commands when folder is emptied
|Reported by:||JohnDoh||Owned by:|
If a plugin adds a button to the mail toolbar it can also add an event listener for the select event to detect when a message is selected and the button should be activated. This is great but it does not disable the buttons when the last message in a folder is moved away.
Example with markasjunk plugin:
Open a folder with 1 message in and select the message; mark as junk button is activated along with all the others
Drag that message to another folder; all the buttons are deactivated except for mark as junk