Make launcher connecting dialog show disconnect reason again
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user