Browse Source

Bring selected script in view of open scripts list

Resolves issue: #29721
Emmanuel Barroga 6 năm trước cách đây
mục cha
commit
fc568d9d5b
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      editor/plugins/script_editor_plugin.cpp

+ 2 - 0
editor/plugins/script_editor_plugin.cpp

@@ -2056,6 +2056,8 @@ bool ScriptEditor::edit(const RES &p_resource, int p_line, int p_col, bool p_gra
 					se->goto_line(p_line - 1);
 				}
 			}
+			_update_script_names();
+			script_list->ensure_current_is_visible();
 			return true;
 		}
 	}