Skip to content

Commit

Permalink
fixed show dialog and close button
Browse files Browse the repository at this point in the history
  • Loading branch information
a.zanella committed Aug 28, 2023
1 parent 6dd2135 commit 5aedbb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions EdicoTI/LiveUpdate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ private void DownloadCompleted(object sender, AsyncCompletedEventArgs e)
{
System.Diagnostics.Process.Start(downloadedFilePath);
if(closeApp) Application.Exit();
this.btnCancel.Text = "&Chiudi";
}

public static string checkForUpdate()
Expand Down
4 changes: 2 additions & 2 deletions EdicoTI/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private void launchAll()
}
else
{
DialogResult result = MessageBox.Show(Properties.Resources.nvdaSuggestion + Properties.Resources.nvdaInternet, "EDICO Targato Italia");
DialogResult result = MessageBox.Show(Properties.Resources.nvdaSuggestion + Properties.Resources.nvdaInternet, "EDICO Targato Italia", MessageBoxButtons.YesNo);
if (result == DialogResult.No)
{
result = MessageBox.Show(Properties.Resources.nvdaSkip, "EDICO Targato Italia", MessageBoxButtons.YesNo);
Expand All @@ -113,7 +113,7 @@ private void launchAll()
}
else
{
new LiveUpdate(url, false, "Addon di EDICO per NVDA", "Download dell'addon di NVDA per EDICO.\n");
new LiveUpdate(url, false, "Addon di EDICO per NVDA", "Download dell'addon di NVDA per EDICO.\n").ShowDialog();
}
}
}
Expand Down

0 comments on commit 5aedbb1

Please sign in to comment.