diff --git a/src/Update/Sucrose.Update/View/DarkUpdateBox.xaml.cs b/src/Update/Sucrose.Update/View/DarkUpdateBox.xaml.cs index 7054ed59b..e9c26179e 100644 --- a/src/Update/Sucrose.Update/View/DarkUpdateBox.xaml.cs +++ b/src/Update/Sucrose.Update/View/DarkUpdateBox.xaml.cs @@ -25,12 +25,12 @@ public DarkUpdateBox(string BundlePath) SourceInitialized += DarkUpdateBox_SourceInitialized; } - private void InstallButton_Click(object sender, RoutedEventArgs e) + private async void InstallButton_Click(object sender, RoutedEventArgs e) { if (Run) { Run = false; - SSSHP.Run(Path); + await Task.Run(() => SSSHP.Run(Path)); } else { diff --git a/src/Update/Sucrose.Update/View/LightUpdateBox.xaml.cs b/src/Update/Sucrose.Update/View/LightUpdateBox.xaml.cs index 3e9ad77e4..23f96c995 100644 --- a/src/Update/Sucrose.Update/View/LightUpdateBox.xaml.cs +++ b/src/Update/Sucrose.Update/View/LightUpdateBox.xaml.cs @@ -21,12 +21,12 @@ public LightUpdateBox(string BundlePath) SystemSounds.Asterisk.Play(); } - private void InstallButton_Click(object sender, RoutedEventArgs e) + private async void InstallButton_Click(object sender, RoutedEventArgs e) { if (Run) { Run = false; - SSSHP.Run(Path); + await Task.Run(() => SSSHP.Run(Path)); } else {