Merge pull request #96571 from AThousandShips/fix_fave_crash

[Editor] Don't show popup when clicking empty in Favorites
This commit is contained in:
Rémi Verschelde 2024-09-04 18:55:52 +02:00
commit b6223c0df0
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 5 additions and 0 deletions

View File

@ -3418,6 +3418,11 @@ void FileSystemDock::_file_list_empty_clicked(const Vector2 &p_pos, MouseButton
current_path = current_path_line_edit->get_text(); 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->clear();
file_list_popup->reset_size(); file_list_popup->reset_size();