Prevent clicking "Defuse the Bomb" multiple times.

This commit is contained in:
Bluzume 2021-01-26 23:21:49 +13:00 committed by GitHub
parent e7498114e8
commit 6b6d159232
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -167,6 +167,7 @@ namespace DontTouchMyFlash
private void defuseBomb_Click(object sender, EventArgs e)
{
defuseBomb.Enabled = false;
if(flashExes.Items.Count > 0)
{
progressBar.Maximum = flashExes.Items.Count;
@ -187,7 +188,7 @@ namespace DontTouchMyFlash
{
MessageBox.Show("No files to patch!", "File Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
defuseBomb.Enabled = true;
}
private void addFile_Click(object sender, EventArgs e)