Skip to content

Commit

Permalink
Update Improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiizor committed Sep 14, 2023
1 parent a359665 commit 56df27a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Update/Sucrose.Update/View/DarkUpdateBox.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
4 changes: 2 additions & 2 deletions src/Update/Sucrose.Update/View/LightUpdateBox.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 56df27a

Please sign in to comment.