From 59f0a06cb39c7cce4623f8441a85a62d0fcb7964 Mon Sep 17 00:00:00 2001 From: Kevin Zhang Date: Thu, 3 Jun 2021 14:14:27 +0800 Subject: [PATCH] change sequence of loading for shell plugin to avoid null reference --- Plugins/Flow.Launcher.Plugin.Shell/Main.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Flow.Launcher.Plugin.Shell/Main.cs b/Plugins/Flow.Launcher.Plugin.Shell/Main.cs index 71da60ff7..829398a4b 100644 --- a/Plugins/Flow.Launcher.Plugin.Shell/Main.cs +++ b/Plugins/Flow.Launcher.Plugin.Shell/Main.cs @@ -271,8 +271,8 @@ namespace Flow.Launcher.Plugin.Shell public void Init(PluginInitContext context) { this.context = context; - context.API.GlobalKeyboardEvent += API_GlobalKeyboardEvent; _settings = context.API.LoadSettingJsonStorage(); + context.API.GlobalKeyboardEvent += API_GlobalKeyboardEvent; } bool API_GlobalKeyboardEvent(int keyevent, int vkcode, SpecialKeyState state)