Skip to content

Commit

Permalink
add confirmation dialog to remove accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
DubbleClick committed Aug 29, 2024
1 parent 976ddfb commit 23b48d0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions GW Launcher/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 23b48d0

Please sign in to comment.