add ShowBox to WriteConfigValues
This commit is contained in:
parent
1cf0758ef0
commit
2b871ad56c
|
|
@ -119,8 +119,7 @@ namespace NovetusLauncher
|
||||||
|
|
||||||
void Button5Click(object sender, EventArgs e)
|
void Button5Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
launcherForm.WriteConfigValues();
|
launcherForm.WriteConfigValues(true);
|
||||||
MessageBox.Show("Config Saved!");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TextBox2TextChanged(object sender, EventArgs e)
|
void TextBox2TextChanged(object sender, EventArgs e)
|
||||||
|
|
|
||||||
|
|
@ -815,11 +815,15 @@ namespace NovetusLauncher
|
||||||
ReadClientValues(initial);
|
ReadClientValues(initial);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void WriteConfigValues()
|
public void WriteConfigValues(bool ShowBox = false)
|
||||||
{
|
{
|
||||||
GlobalFuncs.Config(GlobalPaths.ConfigDir + "\\" + GlobalPaths.ConfigName, true);
|
GlobalFuncs.Config(GlobalPaths.ConfigDir + "\\" + GlobalPaths.ConfigName, true);
|
||||||
GlobalFuncs.ReadClientValues(ConsoleBox);
|
GlobalFuncs.ReadClientValues(ConsoleBox);
|
||||||
GlobalFuncs.ConsolePrint("Config Saved.", 3, ConsoleBox);
|
GlobalFuncs.ConsolePrint("Config Saved.", 3, ConsoleBox);
|
||||||
|
if (ShowBox)
|
||||||
|
{
|
||||||
|
MessageBox.Show("Config Saved!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void WriteCustomizationValues()
|
public void WriteCustomizationValues()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue