mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Check count
This commit is contained in:
parent
db1c1b2d97
commit
c4fbb3dbec
1 changed files with 4 additions and 0 deletions
|
|
@ -525,6 +525,10 @@ namespace Flow.Launcher.Core.Plugin
|
|||
// Update window plugin hotkey dictionary
|
||||
var oldHotkeyModels = _windowPluginHotkeys[oldHotkey];
|
||||
_windowPluginHotkeys[oldHotkey] = oldHotkeyModels.Where(x => x.Item1.ID != plugin.ID || x.Item2.Id != pluginHotkey.Id).ToList();
|
||||
if (_windowPluginHotkeys[oldHotkey].Count == 0)
|
||||
{
|
||||
_windowPluginHotkeys.Remove(oldHotkey);
|
||||
}
|
||||
|
||||
if (_windowPluginHotkeys.TryGetValue(newHotkey, out var newHotkeyModels))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue