Unfix async Task where it doesn't work.

This commit is contained in:
2022-11-14 09:41:19 +00:00
parent 5a1a7ad39a
commit f90cc6593f
3 changed files with 49 additions and 54 deletions

View File

@@ -576,7 +576,7 @@ public sealed class MediaScanViewModel : ViewModelBase
});
[SuppressMessage("ReSharper", "AsyncVoidMethod")]
async void StoppingErrorMessage(string text) => await Dispatcher.UIThread.InvokeAsync(action: async Task() =>
async void StoppingErrorMessage(string text) => await Dispatcher.UIThread.InvokeAsync(action: async () =>
{
ProgressText = text;