Skip to content

Commit de97cd4

Browse files
authored
Merge pull request #953 from Flow-Launcher/disableshellwinr
stop trigger global hotkey when shell plugin is not enabled
2 parents 78f3008 + 88b4ce5 commit de97cd4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Plugins/Flow.Launcher.Plugin.Shell/Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ public void Init(PluginInitContext context)
317317

318318
bool API_GlobalKeyboardEvent(int keyevent, int vkcode, SpecialKeyState state)
319319
{
320-
if (_settings.ReplaceWinR)
320+
if (!context.CurrentPluginMetadata.Disabled && _settings.ReplaceWinR)
321321
{
322322
if (keyevent == (int)KeyEvent.WM_KEYDOWN && vkcode == (int)Keys.R && state.WinPressed)
323323
{

Plugins/Flow.Launcher.Plugin.Shell/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"Name": "Shell",
55
"Description": "Provide executing commands from Flow Launcher",
66
"Author": "qianlifeng",
7-
"Version": "1.4.8",
7+
"Version": "1.4.9",
88
"Language": "csharp",
99
"Website": "https://github.com/Flow-Launcher/Flow.Launcher",
1010
"ExecuteFileName": "Flow.Launcher.Plugin.Shell.dll",

0 commit comments

Comments
 (0)