small hotfix

This commit is contained in:
Bitl 2020-07-18 19:31:39 -07:00
parent c43571a8a6
commit d7de328abb
2 changed files with 34 additions and 0 deletions

View File

@ -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)

View File

@ -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)