소스 검색

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));
 }