mirror of
https://github.com/netbirdio/systray.git
synced 2026-05-22 17:08:41 -07:00
Unlock menuItemsLock before changing UI
Fixes https://github.com/getlantern/systray/issues/133
This commit is contained in:
+1
-1
@@ -187,8 +187,8 @@ func (item *MenuItem) Uncheck() {
|
||||
// update propagates changes on a menu item to systray
|
||||
func (item *MenuItem) update() {
|
||||
menuItemsLock.Lock()
|
||||
defer menuItemsLock.Unlock()
|
||||
menuItems[item.id] = item
|
||||
menuItemsLock.Unlock()
|
||||
addOrUpdateMenuItem(item)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user