oops more things to fix!!

This commit is contained in:
Bitl 2019-08-01 13:10:18 -07:00
parent 6f31595e24
commit 6766222d1e
3 changed files with 7 additions and 2 deletions

View File

@ -135,6 +135,7 @@ namespace NovetusLauncher
this.Name = "ItemMaker"; this.Name = "ItemMaker";
this.Text = "Novetus Item SDK"; this.Text = "Novetus Item SDK";
this.Load += new System.EventHandler(this.ItemMakerLoad); this.Load += new System.EventHandler(this.ItemMakerLoad);
this.Closing += new System.ComponentModel.CancelEventHandler(this.ItemMakerClose);
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();

View File

@ -81,6 +81,11 @@ namespace NovetusLauncher
} }
} }
void ItemMakerClose(object sender, CancelEventArgs e)
{
LauncherFuncs.WriteConfigValues(GlobalVars.ConfigDir + "\\config.ini");
}
void CheckBox1CheckedChanged(object sender, EventArgs e) void CheckBox1CheckedChanged(object sender, EventArgs e)
{ {
if (checkBox1.Checked == true) if (checkBox1.Checked == true)

View File

@ -115,8 +115,7 @@ namespace NovetusLauncher
void QuickConfigureClose(object sender, CancelEventArgs e) void QuickConfigureClose(object sender, CancelEventArgs e)
{ {
string cfgpath = GlobalVars.ConfigDir + "\\config.ini"; LauncherFuncs.WriteConfigValues(GlobalVars.ConfigDir + "\\config.ini");
LauncherFuncs.WriteConfigValues(cfgpath);
GlobalVars.ReadyToLaunch = true; GlobalVars.ReadyToLaunch = true;
} }
} }