Skip to content

Commit e07beb2

Browse files
committed
Add dispose
1 parent c035b65 commit e07beb2

File tree

1 file changed

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

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
namespace Flow.Launcher.Plugin.Shell
1515
{
16-
public class Main : IPlugin, ISettingProvider, IPluginI18n, IContextMenu
16+
public class Main : IPlugin, ISettingProvider, IPluginI18n, IContextMenu, IDisposable
1717
{
1818
private static readonly string ClassName = nameof(Main);
1919

@@ -442,5 +442,10 @@ public List<Result> LoadContextMenus(Result selectedResult)
442442

443443
return results;
444444
}
445+
446+
public void Dispose()
447+
{
448+
Context.API.RemoveGlobalKeyboardCallback(API_GlobalKeyboardEvent);
449+
}
445450
}
446451
}

0 commit comments

Comments
 (0)