Skip to content

Commit 1e54f10

Browse files
committed
2 parents abbf178 + 83899b7 commit 1e54f10

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

QuickLibrary/Forms/DownloadForm.cs

+6-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public DownloadForm(string url, bool darkMode, string updating, string downloadi
4141
if (darkMode)
4242
{
4343
cancelButton.BackColor = ThemeMan.DarkSecondColor;
44-
updateButton.BackColor = ThemeMan.DarkSecondColor;
44+
updateButton.BackColor = ThemeMan.DarkSecondColor;
4545
}
4646

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

8686
private void updateButton_Click(object sender, EventArgs e)
8787
{
88-
Process.Start(fileName);
88+
Process.Start(new ProcessStartInfo
89+
{
90+
UseShellExecute = true,
91+
FileName = fileName
92+
});
8993
Close();
9094
Owner.Close();
9195
}

0 commit comments

Comments
 (0)