Skip to content

Commit

Permalink
Merge pull request #100
Browse files Browse the repository at this point in the history
add confirmation dialog to remove accounts
  • Loading branch information
DubbleClick authored Aug 29, 2024
2 parents 9d0a147 + 23b48d0 commit 0b5ae42
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 0b5ae42

Please sign in to comment.