mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[GUI] Simplify async method implementations in MediaDumpViewModel by removing unnecessary braces
This commit is contained in:
@@ -733,7 +733,7 @@ public sealed partial class MediaDumpViewModel : ViewModelBase
|
||||
Progress2Visible = false;
|
||||
});
|
||||
|
||||
async void EndProgress2() => await Dispatcher.UIThread.InvokeAsync(() => { Progress2Visible = false; });
|
||||
async void EndProgress2() => await Dispatcher.UIThread.InvokeAsync(() => Progress2Visible = false);
|
||||
|
||||
async void UpdateProgress2(string text, long current, long maximum) => await Dispatcher.UIThread.InvokeAsync(() =>
|
||||
{
|
||||
@@ -744,9 +744,9 @@ public sealed partial class MediaDumpViewModel : ViewModelBase
|
||||
Progress2Value = current;
|
||||
});
|
||||
|
||||
async void InitProgress2() => await Dispatcher.UIThread.InvokeAsync(() => { Progress2Visible = true; });
|
||||
async void InitProgress2() => await Dispatcher.UIThread.InvokeAsync(() => Progress2Visible = true);
|
||||
|
||||
async void EndProgress() => await Dispatcher.UIThread.InvokeAsync(() => { Progress1Visible = false; });
|
||||
async void EndProgress() => await Dispatcher.UIThread.InvokeAsync(() => Progress1Visible = false);
|
||||
|
||||
async void UpdateProgress(string text, long current, long maximum) => await Dispatcher.UIThread.InvokeAsync(() =>
|
||||
{
|
||||
@@ -757,7 +757,7 @@ public sealed partial class MediaDumpViewModel : ViewModelBase
|
||||
ProgressValue = current;
|
||||
});
|
||||
|
||||
async void InitProgress() => await Dispatcher.UIThread.InvokeAsync(() => { Progress1Visible = true; });
|
||||
async void InitProgress() => await Dispatcher.UIThread.InvokeAsync(() => Progress1Visible = true);
|
||||
|
||||
async void PulseProgress(string text) => await Dispatcher.UIThread.InvokeAsync(() =>
|
||||
{
|
||||
@@ -775,13 +775,7 @@ public sealed partial class MediaDumpViewModel : ViewModelBase
|
||||
await WorkFinishedAsync();
|
||||
});
|
||||
|
||||
async void ErrorMessage(string text) => await Dispatcher.UIThread.InvokeAsync(() =>
|
||||
{
|
||||
Log += text + Environment.NewLine;
|
||||
});
|
||||
async void ErrorMessage(string text) => await Dispatcher.UIThread.InvokeAsync(() => Log += text + Environment.NewLine);
|
||||
|
||||
async void UpdateStatus(string text) => await Dispatcher.UIThread.InvokeAsync(() =>
|
||||
{
|
||||
Log += text + Environment.NewLine;
|
||||
});
|
||||
async void UpdateStatus(string text) => await Dispatcher.UIThread.InvokeAsync(() => Log += text + Environment.NewLine);
|
||||
}
|
||||
Reference in New Issue
Block a user