Skip to content

Commit

Permalink
Merge pull request #92943 from anniryynanen/less-file-dialogs
Browse files Browse the repository at this point in the history
Fix native file dialogs being shown on `set_visible(false)`
  • Loading branch information
akien-mga committed Jun 10, 2024
2 parents 821338c + b14b222 commit 7128667
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scene/gui/file_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ void FileDialog::set_visible(bool p_visible) {
#endif

if (DisplayServer::get_singleton()->has_feature(DisplayServer::FEATURE_NATIVE_DIALOG_FILE) && (use_native_dialog || OS::get_singleton()->is_sandboxed())) {
_native_popup();
if (p_visible) {
_native_popup();
}
} else {
ConfirmationDialog::set_visible(p_visible);
}
Expand Down

0 comments on commit 7128667

Please sign in to comment.