Skip to content

Commit 650b9d6

Browse files
committed
Fix editor will freeze when modifying filesystem filter path in Split Mode
1 parent 6fea273 commit 650b9d6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

editor/filesystem_dock.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,9 @@ void FileSystemDock::_update_file_list(bool p_keep_selection) {
10041004
}
10051005
}
10061006
} else {
1007+
if (!directory.begins_with("res://")) {
1008+
directory = "res://" + directory;
1009+
}
10071010
// Get infos on the directory + file.
10081011
if (directory.ends_with("/") && directory != "res://") {
10091012
directory = directory.substr(0, directory.length() - 1);

0 commit comments

Comments
 (0)