mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 14:30:56 +00:00
Cleanup
Whoops.
This commit is contained in:
parent
6504d5305a
commit
bd4b400626
1 changed files with 4 additions and 7 deletions
|
@ -3117,18 +3117,15 @@ namespace PKHeX.WinForms
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Main_FormClosing(object sender, FormClosingEventArgs e)
|
private void Main_FormClosing(object sender, FormClosingEventArgs e)
|
||||||
{
|
|
||||||
if (SAV.Edited)
|
|
||||||
{
|
{
|
||||||
if (SAV.Edited && DialogResult.Yes != WinFormsUtil.Prompt(MessageBoxButtons.YesNo, "Any unsaved changes will be lost.", "Are you sure you want to close PKHeX?"))
|
if (SAV.Edited && DialogResult.Yes != WinFormsUtil.Prompt(MessageBoxButtons.YesNo, "Any unsaved changes will be lost.", "Are you sure you want to close PKHeX?"))
|
||||||
{
|
{
|
||||||
e.Cancel = true;
|
e.Cancel = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
try { Properties.Settings.Default.Save(); }
|
try { Properties.Settings.Default.Save(); }
|
||||||
catch (Exception x) { File.WriteAllLines("config error.txt", new[] {x.ToString()}); }
|
catch (Exception x) { File.WriteAllLines("config error.txt", new[] { x.ToString() }); }
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue