Skip to content

Commit 59f0a06

Browse files
committed
change sequence of loading for shell plugin to avoid null reference
1 parent 2d381d6 commit 59f0a06

File tree

1 file changed

+1
-1
lines changed
  • Plugins/Flow.Launcher.Plugin.Shell

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ private bool ExistInPath(string filename)
271271
public void Init(PluginInitContext context)
272272
{
273273
this.context = context;
274-
context.API.GlobalKeyboardEvent += API_GlobalKeyboardEvent;
275274
_settings = context.API.LoadSettingJsonStorage<Settings>();
275+
context.API.GlobalKeyboardEvent += API_GlobalKeyboardEvent;
276276
}
277277

278278
bool API_GlobalKeyboardEvent(int keyevent, int vkcode, SpecialKeyState state)

0 commit comments

Comments
 (0)