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:
@@ -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) { }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -123,6 +123,7 @@ namespace Content.Client.Construction
|
||||
{
|
||||
_constructionView.Dispose();
|
||||
|
||||
SystemBindingChanged(null);
|
||||
_systemManager.SystemLoaded -= OnSystemLoaded;
|
||||
_systemManager.SystemUnloaded -= OnSystemUnloaded;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user