Skip to content

Commit

Permalink
fix bug where BlueprintControl has an event handler that outlives itself
Browse files Browse the repository at this point in the history
  • Loading branch information
factubsio committed Mar 18, 2023
1 parent 326c27f commit 4e18c6c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions BlueprintExplorer/BlueprintControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,12 @@ private void BubblePrints_OnSettingsChanged()
ValidateBlueprint(false);
}

protected override void Dispose(bool disposing)
{
BubblePrints.OnSettingsChanged -= BubblePrints_OnSettingsChanged;
base.Dispose(disposing);
}

protected override void OnBackColorChanged(EventArgs e) => UpdateRowHoverColor();

private void UpdateRowHoverColor()
Expand Down

0 comments on commit 4e18c6c

Please sign in to comment.