From 46cc8af99f2cc9a71cc03f450a54754bc9fa60a0 Mon Sep 17 00:00:00 2001 From: "SUPCON\\guotao" Date: Wed, 22 Nov 2023 10:21:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=B3=BB=E7=BB=9F=E6=89=98?= =?UTF-8?q?=E7=9B=98=E8=A2=AB=E5=B7=A6=E9=94=AE=E5=8F=8C=E5=87=BB=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=E8=83=BD=E5=A4=9F=E6=98=BE=E7=A4=BA=E4=B8=BB?= =?UTF-8?q?=E7=AA=97=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/addon/tray/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/electron/addon/tray/index.js b/electron/addon/tray/index.js index 57dbdf8..106f06f 100644 --- a/electron/addon/tray/index.js +++ b/electron/addon/tray/index.js @@ -62,6 +62,9 @@ class TrayAddon { this.tray.setToolTip(cfg.title); const contextMenu = Menu.buildFromTemplate(trayMenuTemplate); this.tray.setContextMenu(contextMenu); + this.tray.on('double-click', () => { + mainWindow.show() + }) } }