Merge pull request #87563 from jsjtxietian/fix-filesystem-infinite

Fix editor will freeze when modifying filesystem filter path in Split Mode
This commit is contained in:
Rémi Verschelde 2024-02-14 14:08:08 +01:00
commit 907db8eebc
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -979,6 +979,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);