mirror of
https://github.com/misitebao/wails-template-vue
synced 2025-02-24 13:52:16 +08:00
feat: remove the quit method exposed by the app class
This commit is contained in:
parent
9e8488c6d2
commit
cf78b98a30
@ -2,8 +2,6 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/wailsapp/wails/v2/pkg/runtime"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// App struct
|
// App struct
|
||||||
@ -31,9 +29,3 @@ func (b *App) shutdown(ctx context.Context) {
|
|||||||
// Perform your teardown here
|
// Perform your teardown here
|
||||||
// 在此处做一些资源释放的操作
|
// 在此处做一些资源释放的操作
|
||||||
}
|
}
|
||||||
|
|
||||||
// Quit Exit the application
|
|
||||||
// Quit 退出应用
|
|
||||||
func (b *App) Quit() {
|
|
||||||
runtime.Quit(b.ctx)
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user