mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-08-03 10:09:35 -05:00
Save on close
This commit is contained in:
parent
39bdcd2a9c
commit
33977fcb00
1
pk3DS/Personal.Designer.cs
generated
1
pk3DS/Personal.Designer.cs
generated
|
|
@ -945,6 +945,7 @@ private void InitializeComponent()
|
|||
this.Controls.Add(this.L_Mode);
|
||||
this.Name = "Personal";
|
||||
this.Text = "Gen VI Personal.Garc Editor";
|
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.formClosing);
|
||||
this.TC_Pokemon.ResumeLayout(false);
|
||||
this.TP_General.ResumeLayout(false);
|
||||
this.TP_General.PerformLayout();
|
||||
|
|
|
|||
|
|
@ -372,5 +372,9 @@ private void saveEntry()
|
|||
File.WriteAllBytes(paths[paths.Length - 1], data);
|
||||
}
|
||||
|
||||
private void formClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
if (entry > -1) saveEntry();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user