Skip to content

Commit a94e264

Browse files
committed
Revisit asynchronous invocation of the main install method
1 parent 08a4a35 commit a94e264

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/AmaiSosu.GUI/MainWindow.xaml.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ public MainWindow()
3636
_main.Initialise();
3737
}
3838

39-
private void Install(object sender, RoutedEventArgs e)
39+
private async void Install(object sender, RoutedEventArgs e)
4040
{
4141
InstallButton.IsEnabled = false;
4242
InstallButton.Content = "...";
43-
44-
Task.Run(() => { _main.Install(); }).GetAwaiter().GetResult();
43+
44+
await Task.Run(() => _main.Install());
4545

4646
InstallButton.IsEnabled = true;
4747
InstallButton.Content = "⬛ Install OpenSauce";

0 commit comments

Comments
 (0)