fix update of construction progress

This commit is contained in:
Florian Stinglmayr 2025-08-01 15:13:43 +02:00
parent 1b7fb26bc4
commit 5f05b80db2
2 changed files with 3 additions and 1 deletions

View File

@ -61,6 +61,9 @@ internal class ConstructionHelperPage : IPage {
if (depot == null) {
depot = new() { Station = station, Progress = e.ConstructionProgress };
colony.Depots.Add(depot);
} else {
depot.Progress = e.ConstructionProgress;
tree.RefreshObject(depot, false);
}
foreach (var resource in e.ResourcesRequired) {

View File

@ -50,7 +50,6 @@ internal class Edith {
private async Task RunGUILoop() {
RunState state;
bool first = true;
if (window == null) {
return;