mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 15:37:23 +01:00
don't display shard if shardname is not set
This commit is contained in:
parent
7f089f458c
commit
d6a434b2f0
1 changed files with 1 additions and 1 deletions
|
|
@ -472,7 +472,7 @@ public class CompactUi : Window, IDisposable
|
|||
ImGui.PopStyleColor();
|
||||
UiShared.AttachToolTip(!_configuration.FullPause ? "Disconnect from " + _apiController.ServerDictionary[_configuration.ApiUri] : "Connect to " + _apiController.ServerDictionary[_configuration.ApiUri]);
|
||||
|
||||
if (!string.IsNullOrEmpty(shardConnection))
|
||||
if (!string.IsNullOrEmpty(_apiController.ServerInfo.ShardName))
|
||||
{
|
||||
ImGui.SetCursorPosX((ImGui.GetWindowContentRegionMin().X + UiShared.GetWindowContentRegionWidth()) / 2 - shardTextSize.X / 2);
|
||||
ImGui.TextUnformatted(shardConnection);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue