Skip to content

Commit c2c8a82

Browse files
committed
Restore plugin hotkey setting if it is not editable anymore
1 parent 40ba1ae commit c2c8a82

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Flow.Launcher.Infrastructure/UserSettings/PluginSettings.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ public void UpdatePluginHotkeyInfo(IDictionary<PluginPair, List<BasePluginHotkey
132132
{
133133
// Update existing hotkey
134134
existingHotkey.DefaultHotkey = hotkey.DefaultHotkey; // hotkey info provides default values
135+
if (!hotkey.Editable) // If this hotkey is not editable anymore, we need to restore the hotkey
136+
{
137+
existingHotkey.Hotkey = hotkey.DefaultHotkey;
138+
}
135139
metadata.PluginHotkeys.Add(new PluginHotkey
136140
{
137141
Id = hotkey.Id,

0 commit comments

Comments
 (0)