Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
Fixed about menu
Browse files Browse the repository at this point in the history
  • Loading branch information
asticode committed Jun 16, 2018
1 parent a213ed8 commit 1fca816
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Expand Up @@ -64,9 +64,10 @@ func main() {
},
}},
OnWait: func(_ *astilectron.Astilectron, ws []*astilectron.Window, _ *astilectron.Menu, _ *astilectron.Tray, _ *astilectron.Menu) error {
w = ws[0]
go func() {
time.Sleep(5 * time.Second)
if err := bootstrap.SendMessage(ws[0], "check.out.menu", "Don't forget to check out the menu!"); err != nil {
if err := bootstrap.SendMessage(w, "check.out.menu", "Don't forget to check out the menu!"); err != nil {
astilog.Error(errors.Wrap(err, "sending check.out.menu event failed"))
}
}()
Expand Down

1 comment on commit 1fca816

@ondrajz
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comitted 4 days from now

You seem to be living in the future! 😮

Please sign in to comment.