Skip to content

Commit

Permalink
Merge pull request #87563 from jsjtxietian/fix-filesystem-infinite
Browse files Browse the repository at this point in the history
Fix editor will freeze when modifying filesystem filter path in Split Mode
  • Loading branch information
akien-mga committed Feb 14, 2024
2 parents 9705ac4 + 650b9d6 commit 907db8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editor/filesystem_dock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 907db8e

Please sign in to comment.