diff --git a/src/OneWare.Vcd.Viewer/ViewModels/VcdViewModel.cs b/src/OneWare.Vcd.Viewer/ViewModels/VcdViewModel.cs index 4c33390e..1778a88f 100644 --- a/src/OneWare.Vcd.Viewer/ViewModels/VcdViewModel.cs +++ b/src/OneWare.Vcd.Viewer/ViewModels/VcdViewModel.cs @@ -92,6 +92,12 @@ private static string GetSaveFilePath(string vcdPath) Path.GetFileNameWithoutExtension(vcdPath) + ".vcdconf"); } + public override void InitializeContent() + { + base.InitializeContent(); + if (_isLiveExecution) Title = $"{Path.GetFileName(FullPath)} - LIVE"; + } + protected override void UpdateCurrentFile(IFile? oldFile) { Refresh(); @@ -215,7 +221,7 @@ await VcdParser.ReadSignalsAsync(FullPath, _vcdFile, progress, _cancellationToke IsLoading = false; CheckIsDirty(); - await Task.Delay(50); + await Task.Delay(200); _isLiveExecution = false; return true; @@ -226,7 +232,7 @@ private void ReportProgress(int progress, bool isLive) if (_vcdFile == null) return; Title = isLive ? $"{Path.GetFileName(FullPath)} - LIVE" : $"{Path.GetFileName(FullPath)} {progress}%"; - + if (_vcdFile.Definition.ChangeTimes.Count != 0) { if (_vcdFile.Definition.ChangeTimes.LastOrDefault() > WaveFormViewer.Max)