From 23b48d07e5489f23499b8829fd98744b290b8543 Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Thu, 29 Aug 2024 21:56:48 +0200 Subject: [PATCH] add confirmation dialog to remove accounts --- GW Launcher/Forms/MainForm.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/GW Launcher/Forms/MainForm.cs b/GW Launcher/Forms/MainForm.cs index fe43b05..4255c75 100644 --- a/GW Launcher/Forms/MainForm.cs +++ b/GW Launcher/Forms/MainForm.cs @@ -210,6 +210,11 @@ private void ToolStripMenuItemAddNew_Click(object sender, EventArgs e) private void ToolStripMenuItemRemoveSelected_Click(object sender, EventArgs e) { + if (MessageBox.Show(@"Are you sure you want to remove the selected accounts?", @"Remove Accounts", + MessageBoxButtons.YesNo) != DialogResult.Yes) + { + return; + } Program.mutex.WaitOne(); var indices = from int indice in listViewAccounts.SelectedIndices orderby indice descending select indice; foreach (var indice in indices)