From 3969a67c65110715b3712659fd195be2eae5f8a4 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sat, 17 Dec 2022 17:39:39 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=94=AF=E6=8C=81=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BF=AB=E7=85=A7=E5=AF=B9=E6=AF=94=20https://github.com/siyua?= =?UTF-8?q?n-note/siyuan/issues/6858?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/electron/main.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/app/electron/main.js b/app/electron/main.js index 032403cd6..139aaa98f 100644 --- a/app/electron/main.js +++ b/app/electron/main.js @@ -442,7 +442,7 @@ const boot = () => { resetTrayMenu() } const setWndTopMenu = { - label: trayMenu.cancelWindowTop, + label: trayMenu.setWindowTop, click: () => { setCancelWndTop() }, @@ -492,13 +492,7 @@ const boot = () => { if ('win32' === process.platform) { // Windows 端支持窗口置顶 https://github.com/siyuan-note/siyuan/issues/6860 - let changeWndTop = { - label: trayMenu.setWindowTop, - click: () => { - - }, - }; - ret.splice(1, 0, changeWndTop) + ret.splice(1, 0, setWndTopMenu) } return ret; }