mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 06:20:25 +00:00
Reorder open folder logic
Close() still finished executing the method Closes #2076
This commit is contained in:
parent
f0090669bb
commit
63242cc24d
1 changed files with 5 additions and 4 deletions
|
@ -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))
|
||||
{
|
||||
Process.Start("explorer.exe", path);
|
||||
Close();
|
||||
WinFormsUtil.Alert(MsgFolderNotFound, path);
|
||||
return;
|
||||
}
|
||||
WinFormsUtil.Alert(MsgFolderNotFound, path);
|
||||
Process.Start("explorer.exe", path);
|
||||
Close();
|
||||
};
|
||||
FLP_Buttons.Controls.Add(button);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue