From 04a02bd0017f1d32e625ae89e80ec8f85328dcf5 Mon Sep 17 00:00:00 2001 From: Kurt Date: Fri, 13 Mar 2015 20:20:54 -0700 Subject: [PATCH] Fix for exiting while aborting write-backs. The text update can hang on exit thus not reducing the amount of 'threads'; by removing the thread tracking before updating text we can close. --- pk3DS/Main.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pk3DS/Main.cs b/pk3DS/Main.cs index b828a7c..0564411 100644 --- a/pk3DS/Main.cs +++ b/pk3DS/Main.cs @@ -524,7 +524,7 @@ public bool getGARC(string infile, string outfolder, bool PB, bool bypassExt = f public bool setGARC(string outfile, string infolder, bool PB) { if (ModifierKeys == Keys.Control && Util.Prompt(MessageBoxButtons.YesNo, "Cancel writing data back to GARC?") == DialogResult.Yes) - { updateStatus(String.Format("Aborted!"), false); threads--; return false; } + { threads--; updateStatus(String.Format("Aborted!"), false); return false; } try {