From e061f14ec722d3bedb979b8a6b18fb2d3ef5a635 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Wed, 2 Jul 2025 14:07:23 +0800 Subject: [PATCH] Check plugin modified state --- Flow.Launcher/Helper/HotKeyMapper.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher/Helper/HotKeyMapper.cs b/Flow.Launcher/Helper/HotKeyMapper.cs index bebfa16d5..c7bcb0a17 100644 --- a/Flow.Launcher/Helper/HotKeyMapper.cs +++ b/Flow.Launcher/Helper/HotKeyMapper.cs @@ -535,7 +535,11 @@ internal static class HotKeyMapper private static void GlobalPluginHotkey(GlobalPluginHotkeyPair pair) { - if (_mainViewModel.ShouldIgnoreHotkeys() || pair.Metadata.Disabled) + if (pair.Metadata.Disabled || // Check plugin enabled state + App.API.PluginModified(pair.Metadata.ID)) // Check plugin modified state + return; + + if (_mainViewModel.ShouldIgnoreHotkeys()) return; pair.GlobalPluginHotkey.Action?.Invoke(); @@ -557,6 +561,7 @@ internal static class HotKeyMapper if (metadata.ID != pluginId || // Check plugin ID match metadata.Disabled || // Check plugin enabled state + App.API.PluginModified(metadata.ID) || // Check plugin modified state !selectedResult.HotkeyIds.Contains(pluginHotkey.Id) || // Check hotkey supported state pluginHotkey.Action == null) // Check action nullability continue;