Fix player tab opening multiple VV when closed by the X and reopened (#5986)

This commit is contained in:
ShadowCommander
2022-01-01 14:10:46 -08:00
committed by GitHub
parent f186ffe571
commit 9529883db1

View File

@@ -94,7 +94,12 @@ namespace Content.Client.Administration
public void Open()
{
_window ??= new AdminMenuWindow();
if (_window == null)
{
_window = new AdminMenuWindow();
_window.OnClose += Close;
}
_window.PlayerTabControl.OnEntryPressed += PlayerTabEntryPressed;
_window.OpenCentered();
}