Bug?: Token Hotbar does not clear when no token is selected
Norc opened this issue · 3 comments
Norc commented
Test Info:
Foundry 0.62, D&D 0.92, Token Hotbar 1.2.3, Electron app as GM, only module installed in test world. All tokens are unlinked SRD monsters. Same behavior happened with linked tokens.
Test Steps:
- Click a token that has a token hotbar defined with at least one macro on it
- Deselect the token by selecting no tokens
Current behavior: Macro remains on token hotbar
Expected behavior: Token hotbar is cleared (or maybe reverts to a set of macros, like hotbars 1-4) until another token with a defined hotbar is selected.
Norc commented
I'm thinking maybe it should revert to the last hotbar active before the token hotbar was active instead?
janssen-io commented
I think both solutions are great. (y)
- Show the regular 'user' hotbar with macros that were put there when no tokens were selected.
- Switch to the last active hotbar. This would make more sense with relation to #3 and also has the benefit that I can warn when no tokens are selected when the user puts a macro on the token hotbar. I think I'll go with this option.
janssen-io commented
Marked as duplicate, as the solution is also proposed in #3 (Auto-Hotbar toggling).