mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Fix native FileDialogs popping up when use_native_dialog is modified
This commit is contained in:
@@ -2210,7 +2210,7 @@ void FileDialog::set_use_native_dialog(bool p_native) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Replace the built-in dialog with the native one if it's currently visible.
|
// Replace the built-in dialog with the native one if it's currently visible.
|
||||||
if (is_inside_tree() && _should_use_native_popup()) {
|
if (is_inside_tree() && is_visible() && _should_use_native_popup()) {
|
||||||
ConfirmationDialog::set_visible(false);
|
ConfirmationDialog::set_visible(false);
|
||||||
_native_popup();
|
_native_popup();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user