Added sticky presets and URLS between config and main page
This commit is contained in:
@@ -76,9 +76,15 @@ namespace Test_Merge
|
|||||||
if (settingsForm.GrandPrixUrl != "" && settingsForm.SelectedConfigFile != "")
|
if (settingsForm.GrandPrixUrl != "" && settingsForm.SelectedConfigFile != "")
|
||||||
{
|
{
|
||||||
GpUrl = settingsForm.GrandPrixUrl;
|
GpUrl = settingsForm.GrandPrixUrl;
|
||||||
|
tbxGpUrl.Text = GpUrl;
|
||||||
if (File.Exists(settingsForm.SelectedConfigFile))
|
if (File.Exists(settingsForm.SelectedConfigFile))
|
||||||
{
|
{
|
||||||
ConfigFile = settingsForm.SelectedConfigFile;
|
ConfigFile = settingsForm.SelectedConfigFile;
|
||||||
|
for(int i = 0; i < lsbPresets.Items.Count; i++)
|
||||||
|
{
|
||||||
|
if (lsbPresets.Items[i].ToString() == ConfigFile)
|
||||||
|
lsbPresets.SelectedIndex = i;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -401,7 +401,7 @@ namespace Test_Merge
|
|||||||
|
|
||||||
private void lsbPresets_SelectedIndexChanged(object sender, EventArgs e)
|
private void lsbPresets_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
//Nothing
|
SelectedConfigFile = (string)lsbPresets.Items[lsbPresets.SelectedIndex];
|
||||||
}
|
}
|
||||||
|
|
||||||
private void btnLoadPreset_Click(object sender, EventArgs e)
|
private void btnLoadPreset_Click(object sender, EventArgs e)
|
||||||
|
|||||||
Reference in New Issue
Block a user