summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNuno Donato <nunodonato@gmail.com>2017-06-07 22:50:24 +0100
committerNuno Donato <nunodonato@gmail.com>2017-06-07 22:50:24 +0100
commit9fd41416a910b412084da94b3d9bce6e1d6ebe1a (patch)
treeb197f9257dfe804de58fbc83f139612962d89621
parent840ac8c0187b7cfdc13abf9091f2537b34f6552b (diff)
Automatically open new project after creating it in project manager.
Fixes #9075
-rw-r--r--editor/project_manager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp
index 4eab20ee7e..a3d3d42110 100644
--- a/editor/project_manager.cpp
+++ b/editor/project_manager.cpp
@@ -914,8 +914,9 @@ void ProjectManager::_on_project_created(const String &dir) {
_update_scroll_pos(dir);
} else {
_load_recent_projects();
- scroll->connect("draw", this, "_update_scroll_pos", varray(dir), CONNECT_ONESHOT);
+ _update_scroll_pos(dir);
}
+ _open_project();
}
void ProjectManager::_update_scroll_pos(const String &dir) {