From 609acd4a8ebbfb3e6ef6137f5040b8f534b8ce27 Mon Sep 17 00:00:00 2001 From: ModStart Date: Wed, 25 Dec 2024 18:17:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=EF=BC=9A=E5=BF=AB=E6=8D=B7?= =?UTF-8?q?=E9=9D=A2=E6=9D=BF=E5=BC=80=E5=85=B3=E5=92=8C=E5=BF=AB=E6=8D=B7?= =?UTF-8?q?=E9=94=AE=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changelog.md | 1 + electron/mapi/manager/hotkey/handle.ts | 4 +++ src/pages/System/SystemSetting.vue | 44 ++++++++++++++++++++++---- 3 files changed, 43 insertions(+), 6 deletions(-) diff --git a/changelog.md b/changelog.md index 2b18382..23014de 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,6 @@ ## v0.3.0 +- 新增:快捷面板开关和快捷键配置 - 新增:插件管理隐藏系统插件版本 - 新增:工单反馈功能,便于解决问题 - 新增:setting.darkModeSupport 配置项,默认为false diff --git a/electron/mapi/manager/hotkey/handle.ts b/electron/mapi/manager/hotkey/handle.ts index 1e054b1..72041a5 100644 --- a/electron/mapi/manager/hotkey/handle.ts +++ b/electron/mapi/manager/hotkey/handle.ts @@ -1,5 +1,6 @@ import {ManagerPluginEvent} from "../plugin/event"; import {ManagerConfig} from "../config/config"; +import ConfigMain from "../../config/main"; export const ManagerHotkeyHandle = { @@ -11,6 +12,9 @@ export const ManagerHotkeyHandle = { } }, async fastPanelTrigger() { + if (!await ConfigMain.get('fastPanelEnable', true)) { + return + } if (await ManagerPluginEvent.isFastPanelWindowShown(null, null)) { await ManagerPluginEvent.hideFastPanelWindow(null, null) } else { diff --git a/src/pages/System/SystemSetting.vue b/src/pages/System/SystemSetting.vue index f9acb11..a31974c 100644 --- a/src/pages/System/SystemSetting.vue +++ b/src/pages/System/SystemSetting.vue @@ -1,14 +1,30 @@