summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorjsjtxietian <jsjtxietian@outlook.com>2024-01-25 14:18:48 +0800
committerjsjtxietian <jsjtxietian@outlook.com>2024-01-29 11:04:06 +0800
commit650b9d62e453c920cd301225e09c56e956ba3cd6 (patch)
tree4a8d79817e7b9bf57dda5df8516d10fe93458981 /editor
parent6fea273ed3df7d4be9674d35aae698731fa823ea (diff)
downloadredot-engine-650b9d62e453c920cd301225e09c56e956ba3cd6.tar.gz
Fix editor will freeze when modifying filesystem filter path in Split Mode
Diffstat (limited to 'editor')
-rw-r--r--editor/filesystem_dock.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp
index ecbfe4bec5..216b948ed8 100644
--- a/editor/filesystem_dock.cpp
+++ b/editor/filesystem_dock.cpp
@@ -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);