Skip to content

Commit

Permalink
Merge pull request #802 from HicServices/confirm-restart
Browse files Browse the repository at this point in the history
Made restart confirm when user setting ConfirmApplicationExiting is set
  • Loading branch information
RoyMudie authored Dec 8, 2021
2 parents 6d62bf2 + aeed89d commit 2cd9a9b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,10 @@ private void queryCatalogue_Click(object sender, EventArgs e)

private void restartApplicationToolStripMenuItem_Click(object sender, EventArgs e)
{
if (UserSettings.ConfirmApplicationExiting && Activator.Confirm("Restart Application?", "Confirm Restart") == false)
return;


ApplicationRestarter.Restart();
}
}
Expand Down

0 comments on commit 2cd9a9b

Please sign in to comment.