From 64cbde426f0f5fd667bdc9ee1abad1f15c4a7279 Mon Sep 17 00:00:00 2001 From: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Date: Wed, 4 Sep 2024 17:37:43 +0200 Subject: [PATCH] [Editor] Don't show popup when clicking empty in Favorites (cherry picked from commit d2a8b330d881ca50fa238805dee9a1e4b71fb9b0) --- editor/filesystem_dock.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index a9de8e3bc5d..535ea553e28 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -3410,6 +3410,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();