From eb3e169b793a320df9a2d1d36ef6ce04fb59e786 Mon Sep 17 00:00:00 2001 From: fish Date: Mon, 8 Dec 2025 03:39:51 -0800 Subject: [PATCH] Fix native FileDialogs popping up when use_native_dialog is modified --- scene/gui/file_dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/file_dialog.cpp b/scene/gui/file_dialog.cpp index b4247a27a1f..53f79e86c0d 100644 --- a/scene/gui/file_dialog.cpp +++ b/scene/gui/file_dialog.cpp @@ -2210,7 +2210,7 @@ void FileDialog::set_use_native_dialog(bool p_native) { #endif // 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); _native_popup(); }