diff options
author | sr55 <[email protected]> | 2021-03-24 22:21:49 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2021-03-24 22:22:02 +0000 |
commit | 2b18fe2d65b2146b96a9da0e599b1fb372087497 (patch) | |
tree | 762e74f65528d079f8b678e3073f30302bb9dc30 /win/CS/HandBrakeWPF/ViewModels | |
parent | 126013c87d2069b36dce86a5a11996f92a6593a8 (diff) |
WinGui: Refactor the Worker HttpServer class and fix some issues caused by the Caliburn Micro upgrade.
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/LogViewModel.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/LogViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/LogViewModel.cs index 62c43adf5..96ea56f05 100644 --- a/win/CS/HandBrakeWPF/ViewModels/LogViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/LogViewModel.cs @@ -223,15 +223,13 @@ namespace HandBrakeWPF.ViewModels {
if (this.lastReadIndex < e.Log.MessageIndex)
{
- Execute.OnUIThreadAsync(
- () => new Task(
- () =>
+ Execute.BeginOnUIThread(() =>
{
this.lastReadIndex = e.Log.MessageIndex;
this.log.AppendLine(e.Log.Content);
this.OnLogMessageReceived(e);
this.NotifyOfPropertyChange(() => this.ActivityLog);
- }));
+ });
}
}
|