clean current file and tree item references when regenerating tree

This commit is contained in:
Lera Elvoé 2022-06-29 17:27:16 +03:00
parent 68b4a03a3f
commit df2dc1097e

View File

@ -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")