Skip to content

Commit

Permalink
Revisit asynchronous invocation of the main install method
Browse files Browse the repository at this point in the history
  • Loading branch information
MirisWisdom committed Jul 7, 2019
1 parent 08a4a35 commit a94e264
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/AmaiSosu.GUI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ public MainWindow()
_main.Initialise();
}

private void Install(object sender, RoutedEventArgs e)
private async void Install(object sender, RoutedEventArgs e)
{
InstallButton.IsEnabled = false;
InstallButton.Content = "...";
Task.Run(() => { _main.Install(); }).GetAwaiter().GetResult();

await Task.Run(() => _main.Install());

InstallButton.IsEnabled = true;
InstallButton.Content = "⬛ Install OpenSauce";
Expand Down

0 comments on commit a94e264

Please sign in to comment.