Skip to content

Commit

Permalink
Fix System.InvalidOperationException at
Browse files Browse the repository at this point in the history
  • Loading branch information
Fma965 committed Jun 13, 2021
1 parent a6afff3 commit 34e8e44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Syn3Updater/UI/Tabs/DownloadViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,7 @@ private async Task<bool> DoCopy()
string text = $"unable to validate {item.FileName} after 3 tries, ABORTING PROCESS!";
Log += $"[{DateTime.Now}] {text} {Environment.NewLine}";
AppMan.Logger.Info(text);

await UIHelper.ShowErrorDialog(LM.GetValue("MessageBox.FailedToValidate3")).ShowAsync();
await Application.Current.Dispatcher.Invoke(() => UIHelper.ShowErrorDialog(LM.GetValue("MessageBox.FailedToValidate3")).ShowAsync());
return false;
break;
}
Expand Down

0 comments on commit 34e8e44

Please sign in to comment.