Check hotkey mapper count

This commit is contained in:
Jack251970 2025-06-25 23:15:45 +08:00
parent f837b2a5d2
commit 35f8ea3b38

View file

@ -191,10 +191,11 @@ internal static class HotKeyMapper
}
}
private static void SetWindowHotkey(KeyGesture keyGesture, List<(PluginMetadata Metadata, SearchWindowPluginHotkey PluginHotkey)> hotkeyModels)
internal static void SetWindowHotkey(KeyGesture keyGesture, List<(PluginMetadata Metadata, SearchWindowPluginHotkey PluginHotkey)> hotkeyModels)
{
try
{
if (hotkeyModels.Count == 0) return;
if (Application.Current?.MainWindow is MainWindow window)
{
var command = BuildCommand(hotkeyModels);