From 5f05b80db28eb4d693a3d5fd85da878582cd4e0e Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Fri, 1 Aug 2025 15:13:43 +0200 Subject: [PATCH] fix update of construction progress --- src/Construction/ConstructionHelperPage.cs | 3 +++ src/Edith.cs | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Construction/ConstructionHelperPage.cs b/src/Construction/ConstructionHelperPage.cs index 0836873..38019b6 100644 --- a/src/Construction/ConstructionHelperPage.cs +++ b/src/Construction/ConstructionHelperPage.cs @@ -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) { diff --git a/src/Edith.cs b/src/Edith.cs index 4278194..2e50cb5 100644 --- a/src/Edith.cs +++ b/src/Edith.cs @@ -50,7 +50,6 @@ internal class Edith { private async Task RunGUILoop() { RunState state; - bool first = true; if (window == null) { return;