Make launcher connecting dialog show disconnect reason again

This commit is contained in:
Pieter-Jan Briers
2021-10-04 01:45:19 +02:00
parent 494f2194c0
commit 661105dadd
2 changed files with 5 additions and 0 deletions

View File

@@ -30,6 +30,8 @@ namespace Content.Client.Launcher
}
}
public string? LastDisconnectReason => _baseClient.LastDisconnectReason;
public Page CurrentPage
{
get => _currentPage;

View File

@@ -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)