ui: erase "isHovered" ActionButton state when it is hidden

Button stucks in "hovered" mode, if click on it causes active Toolwindow
tab to change (thus, hiding the toolbar with this button).
Or if active tab is changed by hotkey press while button is being hovered.
This commit is contained in:
Aleksey Pivovarov
2018-04-26 21:18:28 +03:00
parent e8f44eb7e5
commit ad8171a577
@@ -204,6 +204,8 @@ public class ActionButton extends JComponent implements ActionButtonComponent, A
myPresentation.removePropertyChangeListener(myPresentationListener);
myPresentationListener = null;
}
myRollover = false;
myMouseDown = false;
super.removeNotify();
}