places-menu: Add "Trash" item

While much less prominent then "Recent", let's include it for
consistency with nautilus.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/340>
This commit is contained in:
Florian Müllner
2024-09-29 01:07:25 +02:00
committed by Marge Bot
parent 8da874355c
commit 8a62e491a8
+5
View File
@@ -315,6 +315,11 @@ export class PlacesManager extends EventEmitter {
}
}
this._places.special.push(new PlaceInfo(
'special',
Gio.File.new_for_uri('trash:///'),
_('Trash')));
this.emit('special-updated');
}