浏览代码

Automatically open new project after creating it in project manager.
Fixes #9075

Nuno Donato 8 年之前
父节点
当前提交
9fd41416a9
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      editor/project_manager.cpp

+ 2 - 1
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) {