mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-30 07:50:32 +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))
|
||||
{
|
||||
WinFormsUtil.Alert(MsgFolderNotFound, path);
|
||||
return;
|
||||
}
|
||||
Process.Start("explorer.exe", path);
|
||||
Close();
|
||||
}
|
||||
WinFormsUtil.Alert(MsgFolderNotFound, path);
|
||||
};
|
||||
FLP_Buttons.Controls.Add(button);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue