Skip to content

Commit

Permalink
more timeout for live execution
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikMennen committed Nov 25, 2024
1 parent a00cc21 commit 745547d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/OneWare.Vcd.Viewer/ViewModels/VcdViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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;
Expand All @@ -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)
Expand Down

0 comments on commit 745547d

Please sign in to comment.