mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Restore plugin hotkey setting if it is not editable anymore
This commit is contained in:
parent
40ba1aea40
commit
c2c8a82472
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue