diff --git a/ObservatoryCore/UI/SettingsForm.cs b/ObservatoryCore/UI/SettingsForm.cs index f05f38c..c13f5ac 100644 --- a/ObservatoryCore/UI/SettingsForm.cs +++ b/ObservatoryCore/UI/SettingsForm.cs @@ -246,7 +246,7 @@ namespace Observatory.UI trackBar.ValueChanged += (sender, e) => { - setting.SetValue(_plugin.Settings, trackBar.Value); + setting.SetValue(_plugin.Settings, Convert.ToInt32(trackBar.Value)); SaveSettings(); }; @@ -268,7 +268,7 @@ namespace Observatory.UI numericUpDown.ValueChanged += (sender, e) => { - setting.SetValue(_plugin.Settings, numericUpDown.Value); + setting.SetValue(_plugin.Settings, Convert.ToInt32(numericUpDown.Value)); SaveSettings(); };