Update Tray.ts
Fixed the tray displays
This commit is contained in:
@@ -15,8 +15,9 @@ export function Tray(): Gtk.Widget {
|
|||||||
return new Widget.Box({
|
return new Widget.Box({
|
||||||
className: "tray",
|
className: "tray",
|
||||||
visible: bind(astalTray, "items").as((items: Array<AstalTray.TrayItem>) => items.length > 0),
|
visible: bind(astalTray, "items").as((items: Array<AstalTray.TrayItem>) => items.length > 0),
|
||||||
children: bind(astalTray, "items").as((items: Array<AstalTray.TrayItem>) =>
|
children: bind(astalTray, "items").as((items: Array<AstalTray.TrayItem>) => items
|
||||||
items.map((item: AstalTray.TrayItem) =>
|
.filter(item => item?.gicon)
|
||||||
|
.map((item: AstalTray.TrayItem) =>
|
||||||
new Widget.Box({
|
new Widget.Box({
|
||||||
className: "item",
|
className: "item",
|
||||||
child: Variable.derive(
|
child: Variable.derive(
|
||||||
|
|||||||
Reference in New Issue
Block a user