diff --git a/ServerUI.gd b/ServerUI.gd index 7fb0e40..fd56430 100644 --- a/ServerUI.gd +++ b/ServerUI.gd @@ -100,6 +100,9 @@ func set_server_dir(dir: String) -> void: func _reconstruct_tree_from_working_files() -> void: + current_file = null + current_tree_selection = null + file_tree.clear() var root: TreeItem = file_tree.create_item() root.set_text(0, "Server files")