Merge pull request #114237 from syntaxerror247/file-dialog

Disable native file dialog on Android Editor
This commit is contained in:
Rémi Verschelde
2026-01-01 16:46:40 +01:00

View File

@@ -62,7 +62,12 @@ void EditorFileDialog::_item_menu_id_pressed(int p_option) {
}
bool EditorFileDialog::_should_use_native_popup() const {
#ifdef ANDROID_ENABLED
// Native file dialog on Android, returns a file URI instead of a path and does not support res://, user://, or options. This requires editor-side changes to handle properly, so disabling it for now.
return false;
#else
return _can_use_native_popup() && (OS::get_singleton()->is_sandboxed() || EDITOR_GET("interface/editor/use_native_file_dialogs").operator bool());
#endif
}
bool EditorFileDialog::_should_hide_file(const String &p_file) const {