Skip to content

Commit 19fda2c

Browse files
committed
add: icon switch demo
fix: systray.SetIcon #7
1 parent df5dc4d commit 19fda2c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

systray_unix.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,7 @@ func SetIcon(iconBytes []byte) {
6262
}
6363

6464
props.SetMust("org.kde.StatusNotifierItem", "IconPixmap", []PX{convertToPixels(iconBytes)})
65-
//if dbusErr != nil {
66-
// log.Printf("systray error: failed to set IconPixmap prop: %s\n", dbusErr)
67-
// return
68-
//}
65+
6966
if conn == nil {
7067
return
7168
}

0 commit comments

Comments
 (0)