diff options
author | 2025-03-02 23:09:55 +0300 | |
---|---|---|
committer | 2025-03-02 23:11:14 +0300 | |
commit | 667934f79a861a0f82c79520e153ba776434d65c (patch) | |
tree | 3cca84cef634d2fcae536566ea8b70a451856c44 /widget/bar | |
parent | fix: slider click handler occupied the whole bar (diff) | |
download | ags-config-667934f79a861a0f82c79520e153ba776434d65c.tar.gz ags-config-667934f79a861a0f82c79520e153ba776434d65c.tar.bz2 ags-config-667934f79a861a0f82c79520e153ba776434d65c.tar.lz ags-config-667934f79a861a0f82c79520e153ba776434d65c.tar.xz ags-config-667934f79a861a0f82c79520e153ba776434d65c.tar.zst ags-config-667934f79a861a0f82c79520e153ba776434d65c.zip |
fix: phantom icon in system tray
Diffstat (limited to '')
-rw-r--r-- | widget/bar/Bar.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/widget/bar/Bar.tsx b/widget/bar/Bar.tsx index 41dc0e2..d89dc5f 100644 --- a/widget/bar/Bar.tsx +++ b/widget/bar/Bar.tsx @@ -86,14 +86,13 @@ function AudioVolume() { function Tray() { - // BUG: personally I have one fantom icon being along other tray icons - // For now I don't have any ideas why this is happening // TODO: rewrite this using more elements, as this is really restricted design const tray = AstalTray.get_default(); return <box cssClasses={["Tray"]}> {bind(tray, "items").as(items => - items.map(item => + // NOTE: this fixes bug with fantom icon, but I don't think that this is a good idea + items.filter(item => item.gicon !== null).map(item => <menubutton setup={self => self.insert_action_group("dbusmenu", item.actionGroup)} tooltipText={bind(item, "tooltipMarkup")} |