Disable native file dialog on Android Editor

Currently in Android editor, native file dialog is only partially working and many parts of the editor require additional changes for full support. Disabling it for now.
This commit is contained in:
Anish Kumar
2025-12-20 17:37:40 +05:30
parent 40cf5a0f50
commit f23aa06647

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 {