From c2c8a82472a27b83cebf122e335cf186395528c6 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Thu, 10 Jul 2025 22:15:51 +0800 Subject: [PATCH] Restore plugin hotkey setting if it is not editable anymore --- Flow.Launcher.Infrastructure/UserSettings/PluginSettings.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Flow.Launcher.Infrastructure/UserSettings/PluginSettings.cs b/Flow.Launcher.Infrastructure/UserSettings/PluginSettings.cs index 0e881005a..f4d55060f 100644 --- a/Flow.Launcher.Infrastructure/UserSettings/PluginSettings.cs +++ b/Flow.Launcher.Infrastructure/UserSettings/PluginSettings.cs @@ -132,6 +132,10 @@ namespace Flow.Launcher.Infrastructure.UserSettings { // Update existing hotkey existingHotkey.DefaultHotkey = hotkey.DefaultHotkey; // hotkey info provides default values + if (!hotkey.Editable) // If this hotkey is not editable anymore, we need to restore the hotkey + { + existingHotkey.Hotkey = hotkey.DefaultHotkey; + } metadata.PluginHotkeys.Add(new PluginHotkey { Id = hotkey.Id,