refactor(app): 注释掉退出相关的代码

- 在 App.d.ts 中注释掉了 systray.Quit() 调用
- 在 App.js 中注释掉了 FileMenu 中的退出选项
- 更新了 models.ts 的 MD5 校验值
This commit is contained in:
spark 2025-01-06 15:18:33 +08:00
parent 1b3c043ce6
commit e808ca47b6
3 changed files with 5 additions and 5 deletions

2
app.go
View File

@ -78,7 +78,7 @@ func (a *App) beforeClose(ctx context.Context) (prevent bool) {
// shutdown is called at application termination
func (a *App) shutdown(ctx context.Context) {
// Perform your teardown here
systray.Quit()
//systray.Quit()
}
// Greet returns a greeting for the given name

View File

@ -1 +1 @@
92d1e03303e475c85c8fdd77128fc32c
bd20b6837e5729f2325cbbbaa79cbf1e

View File

@ -71,9 +71,9 @@ func main() {
FileMenu.AddText("隐藏到托盘区", keys.CmdOrCtrl("h"), func(_ *menu.CallbackData) {
runtime.Hide(app.ctx)
})
FileMenu.AddText("退出", keys.CmdOrCtrl("q"), func(_ *menu.CallbackData) {
runtime.Quit(app.ctx)
})
//FileMenu.AddText("退出", keys.CmdOrCtrl("q"), func(_ *menu.CallbackData) {
// runtime.Quit(app.ctx)
//})
// Create application with options
err := wails.Run(&options.App{