We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08a4a35 commit a94e264Copy full SHA for a94e264
src/AmaiSosu.GUI/MainWindow.xaml.cs
@@ -36,12 +36,12 @@ public MainWindow()
36
_main.Initialise();
37
}
38
39
- private void Install(object sender, RoutedEventArgs e)
+ private async void Install(object sender, RoutedEventArgs e)
40
{
41
InstallButton.IsEnabled = false;
42
InstallButton.Content = "...";
43
-
44
- Task.Run(() => { _main.Install(); }).GetAwaiter().GetResult();
+
+ await Task.Run(() => _main.Install());
45
46
InstallButton.IsEnabled = true;
47
InstallButton.Content = "⬛ Install OpenSauce";
0 commit comments