From a5abc6d6f7a516112d0d7e1e9d375f48b86d903e Mon Sep 17 00:00:00 2001 From: kuaifan Date: Thu, 10 Nov 2022 15:40:15 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20win=E9=80=9A=E7=9F=A5=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/electron.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/electron/electron.js b/electron/electron.js index db6637ea2..7a9504e13 100644 --- a/electron/electron.js +++ b/electron/electron.js @@ -191,6 +191,10 @@ if (!getTheLock) { mainTray.setContextMenu(trayMenu) } } + // + if (process.platform === 'win32') { + app.setAppUserModelId(config.name) + } }) }