Fix player tab opening multiple VV when closed by the X and reopened (#5986)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user