From fb3f1274b3fe6536c1ff96a322956a15d63f3eb6 Mon Sep 17 00:00:00 2001 From: Raphi1 Date: Tue, 1 Aug 2023 21:44:51 +0200 Subject: [PATCH] Update Form1.cs Fix Factor Input, which is now index based --- Code/Forms/Main/Form1.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Code/Forms/Main/Form1.cs b/Code/Forms/Main/Form1.cs index 74c27aed..54a2f2ce 100644 --- a/Code/Forms/Main/Form1.cs +++ b/Code/Forms/Main/Form1.cs @@ -163,10 +163,7 @@ void HandleArgs() outputTbox.Text = arg.Split('=').Last().Trim(); if (arg.StartsWith("factor=")) - { - float factor = arg.Split('=').Last().GetFloat(); - interpFactorCombox.Text = factor.ToString(); - } + interpFactorCombox.SelectedIndex = arg.Split('=').Last().GetInt(); if (arg.StartsWith("ai=")) aiCombox.SelectedIndex = arg.Split('=').Last().GetInt(); @@ -824,4 +821,4 @@ private void comboxOutputQuality_SelectedIndexChanged(object sender, EventArgs e Refresh(); } } -} \ No newline at end of file +}