Skip to content

Commit

Permalink
Merge pull request #95086 from m4gr3d/fix_import_button_not_showing_d…
Browse files Browse the repository at this point in the history
…irectories

[Android editor] Fix issue with importing projects
  • Loading branch information
akien-mga committed Aug 6, 2024
2 parents 3158bbd + fb42b9c commit eabeafd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions editor/project_manager/project_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,15 +351,19 @@ void ProjectDialog::_install_path_changed() {
}

void ProjectDialog::_browse_project_path() {
String path = project_path->get_text();
if (path.is_empty()) {
path = EDITOR_GET("filesystem/directories/default_project_path");
}
if (mode == MODE_IMPORT && install_path->is_visible_in_tree()) {
// Select last ZIP file.
fdialog_project->set_current_path(project_path->get_text());
fdialog_project->set_current_path(path);
} else if ((mode == MODE_NEW || mode == MODE_INSTALL) && create_dir->is_pressed()) {
// Select parent directory of project path.
fdialog_project->set_current_dir(project_path->get_text().get_base_dir());
fdialog_project->set_current_dir(path.get_base_dir());
} else {
// Select project path.
fdialog_project->set_current_dir(project_path->get_text());
fdialog_project->set_current_dir(path);
}

if (mode == MODE_IMPORT) {
Expand Down

0 comments on commit eabeafd

Please sign in to comment.