From f4026eddb116273783cbfd19db0990d0d2d0241e Mon Sep 17 00:00:00 2001 From: Mephisto <38382271+NotMephisto@users.noreply.github.com> Date: Tue, 3 Jun 2025 02:10:02 +0300 Subject: [PATCH] Update Tray.ts Fixed the tray displays --- ags/widget/bar/Tray.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ags/widget/bar/Tray.ts b/ags/widget/bar/Tray.ts index f76f830..512b442 100644 --- a/ags/widget/bar/Tray.ts +++ b/ags/widget/bar/Tray.ts @@ -15,8 +15,9 @@ export function Tray(): Gtk.Widget { return new Widget.Box({ className: "tray", visible: bind(astalTray, "items").as((items: Array) => items.length > 0), - children: bind(astalTray, "items").as((items: Array) => - items.map((item: AstalTray.TrayItem) => + children: bind(astalTray, "items").as((items: Array) => items + .filter(item => item?.gicon) + .map((item: AstalTray.TrayItem) => new Widget.Box({ className: "item", child: Variable.derive(