Fixed aiCombox saving/loading still not working

This commit is contained in:
N00MKRAD
2021-02-03 21:22:30 +01:00
parent 3cc463ec37
commit 8b2efa3e67

View File

@@ -49,8 +49,6 @@ namespace Flowframes
InitAis();
InterpolateUtils.preview = previewPicturebox;
ConfigParser.LoadComboxIndex(aiCombox);
UpdateStepByStepControls(true);
Initialized();
@@ -143,7 +141,7 @@ namespace Flowframes
{
foreach (AI ai in Networks.networks)
aiCombox.Items.Add(ai.friendlyName + " - " + ai.description);
aiCombox.SelectedIndex = 0;
ConfigParser.LoadComboxIndex(aiCombox);
}
public void Initialized()
@@ -287,7 +285,8 @@ namespace Flowframes
if (string.IsNullOrWhiteSpace(aiCombox.Text) || aiCombox.Text == lastAiComboxStr) return;
lastAiComboxStr = aiCombox.Text;
aiModel = UIUtils.FillAiModelsCombox(aiModel, GetAi());
ConfigParser.SaveComboxIndex(aiCombox);
if(initialized)
ConfigParser.SaveComboxIndex(aiCombox);
interpFactorCombox_SelectedIndexChanged(null, null);
}