Skip to content

Commit

Permalink
Don't close when we are updating existing item...
Browse files Browse the repository at this point in the history
That part of the fix may belong in Fyne
Fixes #79
  • Loading branch information
andydotxyz committed Jun 11, 2024
1 parent 03c78c0 commit 26449f2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions systray.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,13 +265,6 @@ func (item *MenuItem) Uncheck() {
// update propagates changes on a menu item to systray
func (item *MenuItem) update() {
menuItemsLock.Lock()
if v, ok := menuItems[item.id]; ok {
select {
case <-v.ClickedCh:
default:
}
close(v.ClickedCh)
}
menuItems[item.id] = item
menuItemsLock.Unlock()
addOrUpdateMenuItem(item)
Expand Down

0 comments on commit 26449f2

Please sign in to comment.