You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is proper way to close popup menu of OptionButton?
There is self.show_popup() to show it, but I do not see a close option. Am I missing something?
Trying to do (on "size_changed" signal)
self.get_popup().visible = false
hides it but logs an error
E 0:00:07:0991 _sub_window_update: Condition "index == -1" is true.
<C++ Source> scene/main/viewport.cpp:310 @ _sub_window_update()
Note that docs state that using visible property should be okay?
PopupMenu get_popup() const
Returns the PopupMenu contained in this button.
Warning: This is a required internal node, removing and freeing it may cause a crash. If you wish to hide it or any of its children, use their Window.visible property.
Tested versions
v4.3.stable.official [77dcf97]
System information
Windows 11 - Godot 4.3 - Compatibility
Issue description
What is proper way to close popup menu of OptionButton?
There is
self.show_popup()
to show it, but I do not see a close option. Am I missing something?Trying to do (on "size_changed" signal)
hides it but logs an error
Note that docs state that using visible property should be okay?
Steps to reproduce
Minimal reproduction project (MRP)
new-game-project.zip
The text was updated successfully, but these errors were encountered: