mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Check plugin modified state
This commit is contained in:
parent
1c8a8d0fc6
commit
e061f14ec7
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue