浏览代码

Make text in the "About" dialog reset its position when changed

Michael Alexsander 5 年之前
父节点
当前提交
64da703c6f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      editor/editor_about.cpp

+ 1 - 0
editor/editor_about.cpp

@@ -58,6 +58,7 @@ void EditorAbout::_notification(int p_what) {
 void EditorAbout::_license_tree_selected() {
 
 	TreeItem *selected = _tpl_tree->get_selected();
+	_tpl_text->scroll_to_line(0);
 	_tpl_text->set_text(selected->get_metadata(0));
 }