Merge pull request #92943 from anniryynanen/less-file-dialogs
Fix native file dialogs being shown on `set_visible(false)`
This commit is contained in:
commit
7128667959
1 changed files with 3 additions and 1 deletions
|
@ -99,7 +99,9 @@ void FileDialog::set_visible(bool p_visible) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (DisplayServer::get_singleton()->has_feature(DisplayServer::FEATURE_NATIVE_DIALOG_FILE) && (use_native_dialog || OS::get_singleton()->is_sandboxed())) {
|
if (DisplayServer::get_singleton()->has_feature(DisplayServer::FEATURE_NATIVE_DIALOG_FILE) && (use_native_dialog || OS::get_singleton()->is_sandboxed())) {
|
||||||
|
if (p_visible) {
|
||||||
_native_popup();
|
_native_popup();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ConfirmationDialog::set_visible(p_visible);
|
ConfirmationDialog::set_visible(p_visible);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue