mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 13:58:33 +00:00
Merge branch 'master' of https://github.com/kwsch/PKHeX
This commit is contained in:
commit
b72c6d4776
1 changed files with 3 additions and 2 deletions
|
@ -162,7 +162,7 @@ namespace PKHeX.WinForms
|
|||
private void RunBatchEdit(StringInstructionSet[] sets, string source, string destination)
|
||||
{
|
||||
editor = new Core.BatchEditor();
|
||||
bool finished = false; // hack cuz DoWork event isn't cleared after completion
|
||||
bool finished = false, displayed = false; // hack cuz DoWork event isn't cleared after completion
|
||||
b.DoWork += (sender, e) =>
|
||||
{
|
||||
if (finished)
|
||||
|
@ -179,7 +179,8 @@ namespace PKHeX.WinForms
|
|||
b.RunWorkerCompleted += (sender, e) =>
|
||||
{
|
||||
string result = editor.GetEditorResults(sets);
|
||||
WinFormsUtil.Alert(result);
|
||||
if (!displayed) WinFormsUtil.Alert(result);
|
||||
displayed = true;
|
||||
FLP_RB.Enabled = RTB_Instructions.Enabled = B_Go.Enabled = true;
|
||||
SetupProgressBar(0);
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue