From 6b6d1592326327d4ce2b262cbff4633cbabfbb71 Mon Sep 17 00:00:00 2001 From: Bluzume <39113159+KuromeSan@users.noreply.github.com> Date: Tue, 26 Jan 2021 23:21:49 +1300 Subject: [PATCH] Prevent clicking "Defuse the Bomb" multiple times. --- DontTouchMyFlash/FlashPwner.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DontTouchMyFlash/FlashPwner.cs b/DontTouchMyFlash/FlashPwner.cs index 6f5a8b3..effd4c1 100644 --- a/DontTouchMyFlash/FlashPwner.cs +++ b/DontTouchMyFlash/FlashPwner.cs @@ -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)