mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
Make launcher connecting dialog show disconnect reason again
This commit is contained in:
parent
494f2194c0
commit
661105dadd
2 changed files with 5 additions and 0 deletions
|
|
@ -30,6 +30,8 @@ namespace Content.Client.Launcher
|
|||
}
|
||||
}
|
||||
|
||||
public string? LastDisconnectReason => _baseClient.LastDisconnectReason;
|
||||
|
||||
public Page CurrentPage
|
||||
{
|
||||
get => _currentPage;
|
||||
|
|
|
|||
|
|
@ -51,6 +51,9 @@ namespace Content.Client.Launcher
|
|||
ConnectingStatus.Visible = page == LauncherConnecting.Page.Connecting;
|
||||
ConnectFail.Visible = page == LauncherConnecting.Page.ConnectFailed;
|
||||
Disconnected.Visible = page == LauncherConnecting.Page.Disconnected;
|
||||
|
||||
if (page == LauncherConnecting.Page.Disconnected)
|
||||
DisconnectReason.Text = _state.LastDisconnectReason;
|
||||
}
|
||||
|
||||
private void ConnectionStateChanged(ClientConnectionState state)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue