Skip to content

Commit

Permalink
Merge pull request godotengine#96571 from AThousandShips/fix_fave_crash
Browse files Browse the repository at this point in the history
[Editor] Don't show popup when clicking empty in Favorites
  • Loading branch information
akien-mga committed Sep 4, 2024
2 parents cb21a20 + d2a8b33 commit b6223c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions editor/filesystem_dock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3418,6 +3418,11 @@ void FileSystemDock::_file_list_empty_clicked(const Vector2 &p_pos, MouseButton

current_path = current_path_line_edit->get_text();

// Favorites isn't a directory so don't show menu.
if (current_path == "Favorites") {
return;
}

file_list_popup->clear();
file_list_popup->reset_size();

Expand Down

0 comments on commit b6223c0

Please sign in to comment.