This commit is contained in:
meelstorm
2025-09-29 09:31:57 +02:00
parent 87c1145744
commit 1aecb79ade
16 changed files with 110 additions and 16 deletions

View File

@@ -26,7 +26,14 @@ namespace VisionBuilder.UI.Windows.Components
private void _statisticsVm_PropertyChanged(object? sender, System.ComponentModel.PropertyChangedEventArgs e)
{
switch (e.PropertyName)
if (InvokeRequired) Invoke(() => HandleStatisticsPropertyChange(e.PropertyName!));
else
HandleStatisticsPropertyChange(e.PropertyName!);
}
private void HandleStatisticsPropertyChange(string propertyName)
{
switch (propertyName)
{
case nameof(StatisticsVM.SessionStarted):
Clear();
@@ -58,7 +65,6 @@ namespace VisionBuilder.UI.Windows.Components
break;
}
}
void InitializeFields()
{
UpdateMeta(StartedAtLabel,"");