add ShowBox to WriteConfigValues

This commit is contained in:
Bitl 2021-03-22 15:30:53 -07:00
parent 1cf0758ef0
commit 2b871ad56c
2 changed files with 6 additions and 3 deletions

View File

@ -119,8 +119,7 @@ namespace NovetusLauncher
void Button5Click(object sender, EventArgs e)
{
launcherForm.WriteConfigValues();
MessageBox.Show("Config Saved!");
launcherForm.WriteConfigValues(true);
}
void TextBox2TextChanged(object sender, EventArgs e)

View File

@ -815,11 +815,15 @@ namespace NovetusLauncher
ReadClientValues(initial);
}
public void WriteConfigValues()
public void WriteConfigValues(bool ShowBox = false)
{
GlobalFuncs.Config(GlobalPaths.ConfigDir + "\\" + GlobalPaths.ConfigName, true);
GlobalFuncs.ReadClientValues(ConsoleBox);
GlobalFuncs.ConsolePrint("Config Saved.", 3, ConsoleBox);
if (ShowBox)
{
MessageBox.Show("Config Saved!");
}
}
public void WriteCustomizationValues()