Skip to content

Commit

Permalink
fix: correct dispose to reference overload module command
Browse files Browse the repository at this point in the history
  • Loading branch information
xCykrix committed Jul 18, 2024
1 parent 2818b49 commit e4c1d16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Module/Module.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ internal void Load()
{
SetWindowOptions();
ICoreManager.WindowManager.AddWindow(this);
ICoreManager.Commands.AddHandler($"/{ModuleCommand.ToLower()}", new CommandInfo(
ICoreManager.Commands.AddHandler($"/{ModuleCommand}", new CommandInfo(
(command, args) =>
{
Toggle();
Expand Down Expand Up @@ -58,7 +58,7 @@ protected string Label(string Label)
public void Dispose()
{
ICoreManager.WindowManager.RemoveWindow(this);
ICoreManager.Commands.RemoveHandler($"/{ModuleName.ToLower()}");
ICoreManager.Commands.RemoveHandler($"/{ModuleCommand}");
ICoreManager.Framework.Update -= Tick;
Every.Clear();
IDispose();
Expand Down

0 comments on commit e4c1d16

Please sign in to comment.