ConstructionMenu now properly unsubscribes from the keybind open event 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.

This commit is contained in:
Acruid
2021-02-27 02:50:02 -08:00
parent 4cb59a0c5e
commit a9a336595a
2 changed files with 1 additions and 8 deletions

View File

@@ -135,13 +135,5 @@ namespace Content.Client.Construction
TargetTexture.Texture = null;
StepList.Clear();
}
/// <inheritdoc />
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
if (disposing) { }
}
}
}

View File

@@ -123,6 +123,7 @@ namespace Content.Client.Construction
{
_constructionView.Dispose();
SystemBindingChanged(null);
_systemManager.SystemLoaded -= OnSystemLoaded;
_systemManager.SystemUnloaded -= OnSystemUnloaded;