Browse Source

Make filesystem dock's path bar start with said path written

Michael Alexsander Silva Dias 7 năm trước cách đây
mục cha
commit
ab2eac8e3f
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      editor/filesystem_dock.cpp

+ 1 - 0
editor/filesystem_dock.cpp

@@ -2248,6 +2248,7 @@ FileSystemDock::FileSystemDock(EditorNode *p_editor) {
 
 	current_path = memnew(LineEdit);
 	current_path->set_h_size_flags(SIZE_EXPAND_FILL);
+	current_path->set_text(path);
 	toolbar_hbc->add_child(current_path);
 
 	button_reload = memnew(Button);