Skip to content

Commit 15a5eec

Browse files
committed
fix(frontend): clear board widgets without report
1 parent 9d71f7c commit 15a5eec

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

MCServerLauncher.WPF/InstanceConsole/View/Pages/BoardPage.xaml.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ private void UpdateComponentsVisibility()
3232
{
3333
var report = InstanceDataManager.Instance.CurrentReport;
3434
if (report == null)
35+
{
36+
AddressComponent.Visibility = Visibility.Collapsed;
37+
PlayerListComponent.Visibility = Visibility.Collapsed;
3538
return;
39+
}
3640

3741
var isMinecraftInstance = report.Config.InstanceType.SupportsMinecraftBoardWidgets();
3842

@@ -78,4 +82,4 @@ await Task.WhenAll(
7882
}
7983
}
8084
}
81-
}
85+
}

0 commit comments

Comments
 (0)