Skip to content

Commit

Permalink
фикс пустого хаба при подключении
Browse files Browse the repository at this point in the history
  • Loading branch information
VigersRay committed Jun 4, 2024
1 parent fe511da commit d712594
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Client/Launcher/LauncherConnectingGui.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
</BoxContainer>
</BoxContainer>
</PanelContainer>
<PanelContainer StyleClasses="AngleRect" HorizontalExpand="True" Margin="0 10 0 0" Name="ServersHub" MinWidth="600" MinHeight="220">
<PanelContainer StyleClasses="AngleRect" HorizontalExpand="True" Margin="0 10 0 0" Visible="False" Name="ServersHub" MinWidth="600" MinHeight="220">
<BoxContainer Orientation="Vertical" VerticalExpand="True" HorizontalExpand="True" Margin="3 3 3 3">
<ScrollContainer VerticalExpand="True" HScrollEnabled="False" HorizontalExpand="True">
<serversHub:ServersHub Name="ServersHubBody" Access="Public" />
Expand Down
3 changes: 3 additions & 0 deletions Content.Client/Launcher/LauncherConnectingGui.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ private void OnPageChanged(LauncherConnecting.Page page)
Disconnected.Visible = page == LauncherConnecting.Page.Disconnected;

if (page == LauncherConnecting.Page.Disconnected)
{
DisconnectReason.Text = _state.LastDisconnectReason;
ServersHub.Visible = true; // Sunrise-edit
}
}

private void ConnectionStateChanged(ClientConnectionState state)
Expand Down

0 comments on commit d712594

Please sign in to comment.