diff --git a/app.go b/app.go index 3cee6d2..2a8f0e9 100644 --- a/app.go +++ b/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 diff --git a/frontend/package.json.md5 b/frontend/package.json.md5 index a223663..7f96e15 100644 --- a/frontend/package.json.md5 +++ b/frontend/package.json.md5 @@ -1 +1 @@ -92d1e03303e475c85c8fdd77128fc32c \ No newline at end of file +bd20b6837e5729f2325cbbbaa79cbf1e \ No newline at end of file diff --git a/main.go b/main.go index a384fda..5f0c1ab 100644 --- a/main.go +++ b/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{