mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-28 15:00:36 +00:00
Merge pull request #94 from chenzw95/opendialog-fix
Explicitly set InitialDirectory when creating new OpenFileDialog
This commit is contained in:
commit
d4e746233c
1 changed files with 4 additions and 0 deletions
|
@ -198,6 +198,10 @@ namespace PKHeX
|
||||||
FileName = "main",
|
FileName = "main",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Reset file dialog path if it no longer exists
|
||||||
|
if (!Directory.Exists(ofd.InitialDirectory))
|
||||||
|
ofd.InitialDirectory = Environment.CurrentDirectory;
|
||||||
|
|
||||||
// Detect main
|
// Detect main
|
||||||
string cyberpath = Util.GetTempFolder();
|
string cyberpath = Util.GetTempFolder();
|
||||||
pathSDF = Util.GetSDFLocation();
|
pathSDF = Util.GetSDFLocation();
|
||||||
|
|
Loading…
Reference in a new issue