Skip to content

Commit 7128667

Browse files
committed
Merge pull request godotengine#92943 from anniryynanen/less-file-dialogs
Fix native file dialogs being shown on `set_visible(false)`
2 parents 821338c + b14b222 commit 7128667

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scene/gui/file_dialog.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ void FileDialog::set_visible(bool p_visible) {
9999
#endif
100100

101101
if (DisplayServer::get_singleton()->has_feature(DisplayServer::FEATURE_NATIVE_DIALOG_FILE) && (use_native_dialog || OS::get_singleton()->is_sandboxed())) {
102-
_native_popup();
102+
if (p_visible) {
103+
_native_popup();
104+
}
103105
} else {
104106
ConfirmationDialog::set_visible(p_visible);
105107
}

0 commit comments

Comments
 (0)