Skip to content

Commit 26449f2

Browse files
committed
Don't close when we are updating existing item...
That part of the fix may belong in Fyne Fixes #79
1 parent 03c78c0 commit 26449f2

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Diff for: systray.go

-7
Original file line numberDiff line numberDiff line change
@@ -265,13 +265,6 @@ func (item *MenuItem) Uncheck() {
265265
// update propagates changes on a menu item to systray
266266
func (item *MenuItem) update() {
267267
menuItemsLock.Lock()
268-
if v, ok := menuItems[item.id]; ok {
269-
select {
270-
case <-v.ClickedCh:
271-
default:
272-
}
273-
close(v.ClickedCh)
274-
}
275268
menuItems[item.id] = item
276269
menuItemsLock.Unlock()
277270
addOrUpdateMenuItem(item)

0 commit comments

Comments
 (0)