Skip to content

Commit

Permalink
[Windows] Fix HID Console crashing on close
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark committed Feb 28, 2024
1 parent 18973e3 commit 68c8dde
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions windows/QMK Toolbox/HidConsole/HidConsoleWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ private void HidConsoleWindow_Load(object sender, EventArgs e)

private void HidConsoleWindow_FormClosing(object sender, FormClosingEventArgs e)
{
consoleListener.consoleDeviceConnected -= ConsoleDeviceConnected;
consoleListener.consoleDeviceDisconnected -= ConsoleDeviceDisconnected;
consoleListener.consoleReportReceived -= ConsoleReportReceived;
consoleListener.Dispose();
}
#endregion
Expand Down

0 comments on commit 68c8dde

Please sign in to comment.