This commit is contained in:
@@ -42,16 +42,5 @@ func main() {
|
||||
s := data.NewService(repo)
|
||||
|
||||
w := mainwindow.Make(a, s)
|
||||
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
d := dialog.NewError(fmt.Errorf("the application crashed: %s", r), w)
|
||||
d.Show()
|
||||
d.SetOnClosed(func() {
|
||||
os.Exit(1)
|
||||
})
|
||||
}
|
||||
}()
|
||||
|
||||
w.ShowAndRun()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user