Skip to content

Commit

Permalink
Fix the Version exception
Browse files Browse the repository at this point in the history
  • Loading branch information
halgari committed Jun 26, 2024
1 parent 68640ce commit 6eff368
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ public DownloadTaskViewModel(IDownloadTask task)
.BindTo(this, x => x.Name)
.DisposeWith(d);

_task.WhenAnyValue(t => t.PersistentState.Version)
_task.WhenAnyValue(t => t.PersistentState)
.Select(state => DownloaderState.Version.TryGet(state, out var version) ? version : "-" )
.OnUI()
.BindTo(this, x => x.Version)
.DisposeWith(d);
Expand Down

0 comments on commit 6eff368

Please sign in to comment.