From 8b2efa3e67500ccab9d1a145cfae9936821f8a52 Mon Sep 17 00:00:00 2001 From: N00MKRAD Date: Wed, 3 Feb 2021 21:22:30 +0100 Subject: [PATCH] Fixed aiCombox saving/loading still not working --- Code/Form1.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Code/Form1.cs b/Code/Form1.cs index e1377de..576a258 100644 --- a/Code/Form1.cs +++ b/Code/Form1.cs @@ -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); }