[Editor] Don't show popup when clicking empty in Favorites
(cherry picked from commit d2a8b330d8
)
This commit is contained in:
parent
b1c1c40250
commit
64cbde426f
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue