Fixed UI bug

This commit is contained in:
N00MKRAD
2021-01-14 00:39:49 +01:00
parent f4c6944774
commit 45ab24f232

View File

@@ -248,8 +248,11 @@ namespace Flowframes
Program.mainForm.UpdateStepByStepControls(false); Program.mainForm.UpdateStepByStepControls(false);
} }
string lastAiComboxStr = "";
private void aiCombox_SelectedIndexChanged(object sender, EventArgs e) private void aiCombox_SelectedIndexChanged(object sender, EventArgs e)
{ {
if (string.IsNullOrWhiteSpace(aiCombox.Text) || aiCombox.Text == lastAiComboxStr) return;
lastAiComboxStr = aiCombox.Text;
aiModel = UIUtils.FillAiModelsCombox(aiModel, GetAi()); aiModel = UIUtils.FillAiModelsCombox(aiModel, GetAi());
interpFactorCombox_SelectedIndexChanged(null, null); interpFactorCombox_SelectedIndexChanged(null, null);
} }