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.Text = "Novetus Item SDK";
this.Load += new System.EventHandler(this.ItemMakerLoad);
this.Closing += new System.ComponentModel.CancelEventHandler(this.ItemMakerClose);
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
this.ResumeLayout(false);
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)
{
if (checkBox1.Checked == true)

View File

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