From e808ca47b692d636a7ccdeb3b2e011241924a822 Mon Sep 17 00:00:00 2001 From: spark Date: Mon, 6 Jan 2025 15:18:33 +0800 Subject: [PATCH] =?UTF-8?q?refactor(app):=20=E6=B3=A8=E9=87=8A=E6=8E=89?= =?UTF-8?q?=E9=80=80=E5=87=BA=E7=9B=B8=E5=85=B3=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 App.d.ts 中注释掉了 systray.Quit() 调用 - 在 App.js 中注释掉了 FileMenu 中的退出选项 - 更新了 models.ts 的 MD5 校验值 --- app.go | 2 +- frontend/package.json.md5 | 2 +- main.go | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) 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{