Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Beelink committed Dec 21, 2023
2 parents abbf178 + 83899b7 commit 1e54f10
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions QuickLibrary/Forms/DownloadForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public DownloadForm(string url, bool darkMode, string updating, string downloadi
if (darkMode)
{
cancelButton.BackColor = ThemeMan.DarkSecondColor;
updateButton.BackColor = ThemeMan.DarkSecondColor;
updateButton.BackColor = ThemeMan.DarkSecondColor;
}

wc = new WebClient();
Expand Down Expand Up @@ -85,7 +85,11 @@ private void wc_DownloadFileCompleted(object sender, AsyncCompletedEventArgs e)

private void updateButton_Click(object sender, EventArgs e)
{
Process.Start(fileName);
Process.Start(new ProcessStartInfo
{
UseShellExecute = true,
FileName = fileName
});
Close();
Owner.Close();
}
Expand Down

0 comments on commit 1e54f10

Please sign in to comment.