mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Do not set flags when PopupMenu::set_visible is called to hide popup.
This commit is contained in:
@@ -3247,7 +3247,7 @@ void PopupMenu::set_visible(bool p_visible) {
|
||||
_native_popup(Rect2i(get_position(), get_size()));
|
||||
}
|
||||
} else {
|
||||
if (is_inside_tree()) {
|
||||
if (p_visible && is_inside_tree()) {
|
||||
set_flag(FLAG_POPUP, true);
|
||||
set_flag(FLAG_NO_FOCUS, !is_embedded());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user