mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add dispose
This commit is contained in:
parent
c035b65517
commit
e07beb2261
1 changed files with 6 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ using Keys = System.Windows.Forms.Keys;
|
|||
|
||||
namespace Flow.Launcher.Plugin.Shell
|
||||
{
|
||||
public class Main : IPlugin, ISettingProvider, IPluginI18n, IContextMenu
|
||||
public class Main : IPlugin, ISettingProvider, IPluginI18n, IContextMenu, IDisposable
|
||||
{
|
||||
private static readonly string ClassName = nameof(Main);
|
||||
|
||||
|
|
@ -442,5 +442,10 @@ namespace Flow.Launcher.Plugin.Shell
|
|||
|
||||
return results;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Context.API.RemoveGlobalKeyboardCallback(API_GlobalKeyboardEvent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue