From 83c7ee11c8c1d7439b2170af4ad0496fcd963f91 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Mon, 17 Mar 2025 15:54:39 +0800 Subject: [PATCH] Change type name & Add comments --- Flow.Launcher/CustomQueryHotkeySetting.xaml | 2 +- Flow.Launcher/HotkeyControl.xaml.cs | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Flow.Launcher/CustomQueryHotkeySetting.xaml b/Flow.Launcher/CustomQueryHotkeySetting.xaml index 3ddd41bd6..0171e6d79 100644 --- a/Flow.Launcher/CustomQueryHotkeySetting.xaml +++ b/Flow.Launcher/CustomQueryHotkeySetting.xaml @@ -104,7 +104,7 @@ VerticalAlignment="Center" HorizontalContentAlignment="Left" DefaultHotkey="" - Type="None" /> + Type="CustomQueryHotkey" /> hotkey, + // Custom query hotkeys + HotkeyType.CustomQueryHotkey => hotkey, // Settings hotkeys HotkeyType.Hotkey => _settings.Hotkey, HotkeyType.PreviewHotkey => _settings.PreviewHotkey, @@ -149,8 +149,10 @@ namespace Flow.Launcher { switch (Type) { - // Custom hotkeys - case HotkeyType.None: + // Custom query hotkeys + case HotkeyType.CustomQueryHotkey: + // We just need to store it in a local field + // because we will save to settings in other place hotkey = value; break; // Settings hotkeys