mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-10 18:15:30 -05:00
Merge pull request #94 from chenzw95/opendialog-fix
Explicitly set InitialDirectory when creating new OpenFileDialog
This commit is contained in:
@@ -198,6 +198,10 @@ private void mainMenuOpen(object sender, EventArgs e)
|
||||
FileName = "main",
|
||||
};
|
||||
|
||||
// Reset file dialog path if it no longer exists
|
||||
if (!Directory.Exists(ofd.InitialDirectory))
|
||||
ofd.InitialDirectory = Environment.CurrentDirectory;
|
||||
|
||||
// Detect main
|
||||
string cyberpath = Util.GetTempFolder();
|
||||
pathSDF = Util.GetSDFLocation();
|
||||
|
||||
Reference in New Issue
Block a user