mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Merge pull request #107683 from KoBeWi/nothing_ever_selects
Clear current path when deselecting files
This commit is contained in:
@@ -3580,6 +3580,11 @@ void FileSystemDock::_tree_empty_click(const Vector2 &p_pos, MouseButton p_butto
|
||||
|
||||
void FileSystemDock::_tree_empty_selected() {
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user