From c2037f28e2b384db9ce2e93829e463bfc5389ce7 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Fri, 25 Nov 2022 16:03:32 +0100 Subject: [PATCH] repair automatic refresh --- EliteBGS/MainWindow.xaml.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/EliteBGS/MainWindow.xaml.cs b/EliteBGS/MainWindow.xaml.cs index 1d51170..7d546a8 100644 --- a/EliteBGS/MainWindow.xaml.cs +++ b/EliteBGS/MainWindow.xaml.cs @@ -178,7 +178,7 @@ public partial class MainWindow : Window { } if (removed) { - GenerateLog(); + RefreshView(); } } @@ -253,6 +253,11 @@ public partial class MainWindow : Window { }; objective.Transactions.Add(zone); + RefreshView(); + } + + private void RefreshView() { + entries.Items.Refresh(); GenerateLog(); } @@ -272,7 +277,7 @@ public partial class MainWindow : Window { if (int.TryParse(adjust.Profit.Text, out int newprofit)) { sell.Profit = newprofit; - GenerateLog(); + RefreshView(); } }