From d6a434b2f01aa46260c318a0917338bb9da48464 Mon Sep 17 00:00:00 2001 From: Stanley Dimant Date: Tue, 4 Oct 2022 02:02:11 +0200 Subject: [PATCH] don't display shard if shardname is not set --- MareSynchronos/UI/CompactUI.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MareSynchronos/UI/CompactUI.cs b/MareSynchronos/UI/CompactUI.cs index 9ccf93e..f58ad2c 100644 --- a/MareSynchronos/UI/CompactUI.cs +++ b/MareSynchronos/UI/CompactUI.cs @@ -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);