summaryrefslogtreecommitdiffstats
path: root/editor/project_manager.cpp
diff options
context:
space:
mode:
authorNathan Franke <me@nathan.sh>2024-02-22 07:27:04 -0600
committerNathan Franke <me@nathan.sh>2024-03-08 12:27:50 -0600
commit2130f1121a4d4bbc8c812ac6bea78cae1203c7ad (patch)
tree3f5d8fbe3457ea6e33854549ea0ad0f08a71a7d3 /editor/project_manager.cpp
parentaef11a14274f6f9e74ad91ead1d7c07ea1dd7f5f (diff)
downloadredot-engine-2130f1121a4d4bbc8c812ac6bea78cae1203c7ad.tar.gz
Automatically create folder in project manager create/import/install
Diffstat (limited to 'editor/project_manager.cpp')
-rw-r--r--editor/project_manager.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp
index 4187bf5a32..b951e9453e 100644
--- a/editor/project_manager.cpp
+++ b/editor/project_manager.cpp
@@ -618,14 +618,15 @@ void ProjectManager::_new_project() {
}
void ProjectManager::_rename_project() {
- const HashSet<String> &selected_list = project_list->get_selected_project_keys();
+ const Vector<ProjectList::Item> &selected_list = project_list->get_selected_projects();
if (selected_list.size() == 0) {
return;
}
- for (const String &E : selected_list) {
- project_dialog->set_project_path(E);
+ for (const ProjectList::Item &E : selected_list) {
+ project_dialog->set_project_name(E.project_name);
+ project_dialog->set_project_path(E.path);
project_dialog->set_mode(ProjectDialog::MODE_RENAME);
project_dialog->show_dialog();
}