Restore plugin hotkey setting if it is not editable anymore

This commit is contained in:
Jack251970 2025-07-10 22:15:51 +08:00
parent 40ba1aea40
commit c2c8a82472

View file

@ -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,