mirror of
https://github.com/ArvinLovegood/go-stock.git
synced 2025-07-19 00:00:09 +08:00
refactor(app): 注释掉退出相关的代码
- 在 App.d.ts 中注释掉了 systray.Quit() 调用 - 在 App.js 中注释掉了 FileMenu 中的退出选项 - 更新了 models.ts 的 MD5 校验值
This commit is contained in:
parent
1b3c043ce6
commit
e808ca47b6
2
app.go
2
app.go
@ -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
|
||||
|
@ -1 +1 @@
|
||||
92d1e03303e475c85c8fdd77128fc32c
|
||||
bd20b6837e5729f2325cbbbaa79cbf1e
|
6
main.go
6
main.go
@ -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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user