mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
[v2] Fix OnShutdown for production build
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user