nautilusgtkplacessidebar.c: Prevent entering Trash

Ghost User requested to merge (removed):my_work into main

Currently, hovering over a sidebar directory with a file opens it.

This is useless in the Trash, as sub-directories can't be used.

My fix checks if a sidebar item is the list, and doesn't open it if so.

#2831 (closed)

Merge request reports