From aeed89d05c550eff2e7faf64931926b332ad0110 Mon Sep 17 00:00:00 2001 From: Thomas Nind Date: Wed, 8 Dec 2021 10:40:13 +0000 Subject: [PATCH] Made restart confirm when user setting ConfirmApplicationExiting is set --- .../Menus/RDMPTopMenuStripUI.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Application/ResearchDataManagementPlatform/Menus/RDMPTopMenuStripUI.cs b/Application/ResearchDataManagementPlatform/Menus/RDMPTopMenuStripUI.cs index 966fd7fc44..1f02b94875 100644 --- a/Application/ResearchDataManagementPlatform/Menus/RDMPTopMenuStripUI.cs +++ b/Application/ResearchDataManagementPlatform/Menus/RDMPTopMenuStripUI.cs @@ -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(); } }