From c52659a3642619fdaf9dcc1843a43213619fde09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E7=BB=B4=E5=98=89?= Date: Tue, 21 Dec 2021 15:43:35 +0800 Subject: [PATCH] fix --- src/main/dock.js | 6 ------ src/main/index.js | 5 ++--- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/main/dock.js b/src/main/dock.js index 25197a6..ddaffd2 100644 --- a/src/main/dock.js +++ b/src/main/dock.js @@ -78,12 +78,6 @@ function createDock(window) { label: "退出" } ]); - // appIcon.on("click", () => { - // appIcon.popUpContextMenu(contextMenu); - // }); - // appIcon.setContextMenu(contextMenu); - - // resolve(appIcon); app.dock.setMenu(dockMenu); app.dock.setIcon(appIcon); diff --git a/src/main/index.js b/src/main/index.js index a697d3b..a73394e 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -43,10 +43,9 @@ class initApp { if (commonConst.production() && !app.isInApplicationsFolder()) { app.moveToApplicationsFolder(); } else { - // app.dock.hide() + app.dock.hide() } } else { - app.moveToApplicationsFolder(); app.disableHardwareAcceleration(); } } @@ -55,7 +54,7 @@ class initApp { const readyFunction = () => { this.createWindow(); createTray(main.getWindow()); - createDock(); + // createDock(); autoUpdate(); }; if (!app.isReady()) { -- GitLab