瀏覽代碼

Reset reason text when no longer connected

Resets the "Child Process Connected" when the child process is no longer
connected.
Marcin Zawiejski 7 年之前
父節點
當前提交
ce73b56adb
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      editor/script_editor_debugger.cpp

+ 3 - 0
editor/script_editor_debugger.cpp

@@ -1240,6 +1240,9 @@ void ScriptEditorDebugger::stop() {
 	if (connection.is_valid()) {
 		EditorNode::get_log()->add_message("** Debug Process Stopped **");
 		connection.unref();
+
+		reason->set_text("");
+		reason->set_tooltip("");
 	}
 
 	pending_in_queue = 0;