Skip to content

Commit

Permalink
example: Report quit synchronously
Browse files Browse the repository at this point in the history
  • Loading branch information
anacrolix committed Jul 1, 2024
1 parent e267c0f commit b96f9a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ func main() {
}

systray.Run(onReady, onExit)
fmt.Println("Finished quitting")
}

func addQuitItem() {
Expand All @@ -24,7 +25,6 @@ func addQuitItem() {
<-mQuit.ClickedCh
fmt.Println("Requesting quit")
systray.Quit()
fmt.Println("Finished quitting")
}()
systray.AddSeparator()
}
Expand Down

0 comments on commit b96f9a7

Please sign in to comment.