浏览代码

Run project after selecting main scene. Fixes #9077

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

+ 1 - 0
editor/editor_node.cpp

@@ -1085,6 +1085,7 @@ void EditorNode::_dialog_action(String p_file) {
 			GlobalConfig::get_singleton()->set("application/main_scene", p_file);
 			GlobalConfig::get_singleton()->save();
 			//would be nice to show the project manager opened with the highlighted field..
+			_run(false, ""); // automatically run the project
 		} break;
 		case FILE_SAVE_OPTIMIZED: {