mirror of
https://github.com/godotengine/godot.git
synced 2024-09-20 22:42:43 +00:00
Fix hovering-color of MenuBar entries when reentering MenuBar
When reentering MenuBar with the mouse cursor, the hovering-color was not set, because the previously hovered entry was still referenced in selected_menu. This PR resets selected_menu on mouse-exit.
This commit is contained in:
parent
7e1bd3f95a
commit
c5c40f4f23
|
@ -345,6 +345,7 @@ void MenuBar::_notification(int p_what) {
|
|||
} break;
|
||||
case NOTIFICATION_MOUSE_EXIT: {
|
||||
focused_menu = -1;
|
||||
selected_menu = -1;
|
||||
queue_redraw();
|
||||
} break;
|
||||
case NOTIFICATION_TRANSLATION_CHANGED:
|
||||
|
|
Loading…
Reference in New Issue
Block a user