Skip to content

Commit

Permalink
don't ignore errors from runtime.MessageDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
emuell committed Jul 20, 2022
1 parent b12a41c commit 4847fe2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ func (r *ResticBrowserApp) Startup(ctx context.Context) {
Title: "Restic Binary Missing",
Message: message,
Buttons: []string{"Okay"},
Icon: nil,
}
runtime.MessageDialog(*r.context, options)
_, err := runtime.MessageDialog(*r.context, options)
if err != nil {
fmt.Printf("failed to show message: %s\n", err.Error())
}
}
// create app temp dir
tempPath, err := ioutil.TempDir(os.TempDir(), "restic-browser")
Expand Down

0 comments on commit 4847fe2

Please sign in to comment.