mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-07 23:08:47 -05:00
Fix sav path after exporting to new name (#2791)
This commit is contained in:
@@ -1196,7 +1196,10 @@ private void ClickExportSAVBAK(object sender, EventArgs e)
|
||||
private void ClickExportSAV(object sender, EventArgs e)
|
||||
{
|
||||
if (Menu_ExportSAV.Enabled)
|
||||
{
|
||||
C_SAV.ExportSaveFile();
|
||||
Text = GetProgramTitle(C_SAV.SAV);
|
||||
}
|
||||
}
|
||||
|
||||
private void ClickSaveFileName(object sender, EventArgs e)
|
||||
|
||||
@@ -362,6 +362,7 @@ private static void ExportSAV(SaveFile sav, string path)
|
||||
{
|
||||
File.WriteAllBytes(path, sav.Write(flags));
|
||||
sav.Edited = false;
|
||||
sav.SetFileInfo(path);
|
||||
Alert(MsgSaveExportSuccessPath, path);
|
||||
}
|
||||
catch (Exception x)
|
||||
|
||||
Reference in New Issue
Block a user