Browse Source

Clear current path when deselecting files

kobewi 2 months ago
parent
commit
8a92c81a66
1 changed files with 5 additions and 0 deletions
  1. 5 0
      editor/filesystem_dock.cpp

+ 5 - 0
editor/filesystem_dock.cpp

@@ -3581,6 +3581,11 @@ void FileSystemDock::_tree_empty_click(const Vector2 &p_pos, MouseButton p_butto
 
 
 void FileSystemDock::_tree_empty_selected() {
 void FileSystemDock::_tree_empty_selected() {
 	tree->deselect_all();
 	tree->deselect_all();
+	current_path = "";
+	current_path_line_edit->set_text(current_path);
+	if (file_list_vb->is_visible()) {
+		_update_file_list(false);
+	}
 }
 }
 
 
 void FileSystemDock::_file_list_item_clicked(int p_item, const Vector2 &p_pos, MouseButton p_mouse_button_index) {
 void FileSystemDock::_file_list_item_clicked(int p_item, const Vector2 &p_pos, MouseButton p_mouse_button_index) {