small hotfix
This commit is contained in:
parent
c43571a8a6
commit
d7de328abb
|
|
@ -113,6 +113,23 @@ namespace NovetusLauncher
|
|||
GlobalVars.UserConfiguration.QualityLevel = Settings.GraphicsOptions.Level.Automatic;
|
||||
break;
|
||||
}
|
||||
|
||||
if (comboBox2.SelectedIndex != 6)
|
||||
{
|
||||
//https://stackoverflow.com/questions/9029351/close-all-open-forms-except-the-main-menu-in-c-sharp
|
||||
|
||||
FormCollection fc = Application.OpenForms;
|
||||
|
||||
foreach (Form frm in fc)
|
||||
{
|
||||
//iterate through
|
||||
if (frm.Name == "CustomGraphicsOptions")
|
||||
{
|
||||
frm.Close();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void NovetusSettings_Load(object sender, EventArgs e)
|
||||
|
|
|
|||
|
|
@ -1336,6 +1336,23 @@ namespace NovetusLauncher
|
|||
}
|
||||
|
||||
GlobalFuncs.ReadClientValues(richTextBox1);
|
||||
|
||||
if (comboBox2.SelectedIndex != 6)
|
||||
{
|
||||
//https://stackoverflow.com/questions/9029351/close-all-open-forms-except-the-main-menu-in-c-sharp
|
||||
|
||||
FormCollection fc = Application.OpenForms;
|
||||
|
||||
foreach (Form frm in fc)
|
||||
{
|
||||
//iterate through
|
||||
if (frm.Name == "CustomGraphicsOptions")
|
||||
{
|
||||
frm.Close();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void comboBox3_SelectedIndexChanged(object sender, EventArgs e)
|
||||
|
|
|
|||
Loading…
Reference in New Issue