From ad8171a577aae0bd3a729171bbeec24beb037454 Mon Sep 17 00:00:00 2001 From: Aleksey Pivovarov Date: Thu, 26 Apr 2018 21:06:46 +0300 Subject: [PATCH] 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. --- .../com/intellij/openapi/actionSystem/impl/ActionButton.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/platform-impl/src/com/intellij/openapi/actionSystem/impl/ActionButton.java b/platform/platform-impl/src/com/intellij/openapi/actionSystem/impl/ActionButton.java index 5a8c6fb6fb5c..6a5e344ea886 100644 --- a/platform/platform-impl/src/com/intellij/openapi/actionSystem/impl/ActionButton.java +++ b/platform/platform-impl/src/com/intellij/openapi/actionSystem/impl/ActionButton.java @@ -204,6 +204,8 @@ public class ActionButton extends JComponent implements ActionButtonComponent, A myPresentation.removePropertyChangeListener(myPresentationListener); myPresentationListener = null; } + myRollover = false; + myMouseDown = false; super.removeNotify(); }