mirror of
https://github.com/netbirdio/systray.git
synced 2026-05-22 17:08:41 -07:00
Reverted deadlock fix (Affected other receivers)
This commit is contained in:
@@ -125,13 +125,6 @@ func addOrUpdateMenuItem(item *MenuItem) {
|
||||
item.id = nextActionId
|
||||
action = walk.NewAction()
|
||||
action.Triggered().Attach(func() {
|
||||
// Ensure there is at least one receiver to prevent deadlock
|
||||
go func() {
|
||||
select {
|
||||
case <-item.ClickedCh:
|
||||
}
|
||||
}()
|
||||
|
||||
item.ClickedCh <- struct{}{}
|
||||
})
|
||||
if err := notifyIcon.ContextMenu().Actions().Add(action); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user