Skip to content

Commit

Permalink
ConstructionMenu now properly unsubscribes from the keybind open even…
Browse files Browse the repository at this point in the history
…t on the ConstructionSystem. This bug was previously causing an invisible disposed window to open back up after round start when pressing G, throwing exceptions and blocking mouse input.
  • Loading branch information
Acruid committed Feb 27, 2021
1 parent 4cb59a0 commit a9a3365
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 0 additions & 8 deletions Content.Client/Construction/ConstructionMenu.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,5 @@ public void ClearRecipeInfo()
TargetTexture.Texture = null;
StepList.Clear();
}

/// <inheritdoc />
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);

if (disposing) { }
}
}
}
1 change: 1 addition & 0 deletions Content.Client/Construction/ConstructionMenuPresenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public void Dispose()
{
_constructionView.Dispose();

SystemBindingChanged(null);
_systemManager.SystemLoaded -= OnSystemLoaded;
_systemManager.SystemUnloaded -= OnSystemUnloaded;

Expand Down

0 comments on commit a9a3365

Please sign in to comment.