summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Services/UserSettingService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/UserSettingService.cs')
-rw-r--r--win/CS/HandBrakeWPF/Services/UserSettingService.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/Services/UserSettingService.cs b/win/CS/HandBrakeWPF/Services/UserSettingService.cs
index cc9e11145..9ae00d275 100644
--- a/win/CS/HandBrakeWPF/Services/UserSettingService.cs
+++ b/win/CS/HandBrakeWPF/Services/UserSettingService.cs
@@ -88,11 +88,11 @@ namespace HandBrakeWPF.Services
/// <returns>
/// The user setting
/// </returns>
- public T GetUserSetting<T>(string name, Type conversionType = null)
+ public T GetUserSetting<T>(string name)
{
if (this.userSettings.ContainsKey(name))
{
- if (conversionType != null && typeof(int) == conversionType)
+ if (typeof(T) == typeof(int))
{
object storedValue = this.userSettings[name];
object converted = storedValue?.ToString().ToInt();