mirror of
				https://github.com/9ParsonsB/Pulsar.git
				synced 2025-10-31 06:34:58 -04:00 
			
		
		
		
	[Core] Fix: Convert Decimal control values to int32 for Int settings (#134)
Attempting to set decimal values to int properties tends to throw errors. ;-)
This commit is contained in:
		| @@ -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(); | ||||
|             }; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user