Reorder open folder logic

Close() still finished executing the method
Closes #2076
This commit is contained in:
Kurt 2018-07-25 07:26:29 -07:00
parent f0090669bb
commit 63242cc24d

View file

@ -104,12 +104,13 @@ namespace PKHeX.WinForms
button.Enabled = new DirectoryInfo(path).Exists;
button.Click += (s, e) =>
{
if (Directory.Exists(path))
if (!Directory.Exists(path))
{
WinFormsUtil.Alert(MsgFolderNotFound, path);
return;
}
Process.Start("explorer.exe", path);
Close();
}
WinFormsUtil.Alert(MsgFolderNotFound, path);
};
FLP_Buttons.Controls.Add(button);
}