Browse Source

Fixed script tab selection on file close, issue 8400

(cherry picked from commit 39061340035e94a2fb43273ca32601c7c8a811b6)
Paulb23 8 năm trước cách đây
mục cha
commit
4aca27e2fa
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      editor/plugins/script_editor_plugin.cpp

+ 3 - 0
editor/plugins/script_editor_plugin.cpp

@@ -731,6 +731,9 @@ void ScriptEditor::_close_tab(int p_idx) {
 		apply_scripts();
 	}
 
+	// roll back to previous tab
+	_history_back();
+
 	//remove from history
 	history.resize(history_pos + 1);