Fix editor will freeze when modifying filesystem filter path in Split Mode

This commit is contained in:
jsjtxietian 2024-01-25 14:18:48 +08:00
parent 6fea273ed3
commit 650b9d62e4
1 changed files with 3 additions and 0 deletions

View File

@ -1004,6 +1004,9 @@ void FileSystemDock::_update_file_list(bool p_keep_selection) {
}
}
} else {
if (!directory.begins_with("res://")) {
directory = "res://" + directory;
}
// Get infos on the directory + file.
if (directory.ends_with("/") && directory != "res://") {
directory = directory.substr(0, directory.length() - 1);