[v2] Fix OnShutdown for production build

This commit is contained in:
Lea Anthony
2021-11-11 06:05:50 +11:00
parent 621c70253d
commit 1bed8234c9
2 changed files with 3 additions and 3 deletions

View File

@@ -35,6 +35,9 @@ type App struct {
func (a *App) Run() error {
err := a.frontend.Run(a.ctx)
if a.shutdownCallback != nil {
a.shutdownCallback(a.ctx)
}
return err
}

View File

@@ -214,9 +214,6 @@ func (f *Frontend) WindowSetRGBA(col *options.RGBA) {
func (f *Frontend) Quit() {
f.mainWindow.Quit()
if f.frontendOptions.OnShutdown != nil {
f.frontendOptions.OnShutdown(f.ctx)
}
}
type EventNotify struct {