ags: fix systray icon warning

take code snippet from ags wiki to fix:
```
(com.github.Aylur.ags:748022): Gjs-Console-WARNING **: 21:42:04.733: Error: can't assign "[object instance wrapper GIName:GdkPixbuf.Pixbuf jsobj@0x37f2745abd08 native@0x62e804712490]" as icon, it is not a file nor a named icon
```
This commit is contained in:
MoetaYuko
2024-05-01 22:32:20 +08:00
parent de0d5ffdf0
commit c68de4707f
+1 -5
View File
@@ -5,11 +5,7 @@ const { Gravity } = imports.gi.Gdk;
const SysTrayItem = (item) => Button({
className: 'bar-systray-item',
child: Icon({
hpack: 'center',
icon: `${item.icon}`,
setup: (self) => self.hook(item, (self) => self.icon = item.icon),
}),
child: Icon({hpack: 'center'}).bind('icon', item, 'icon'),
setup: (self) => self
.hook(item, (self) => self.tooltipMarkup = item['tooltip-markup'])
,