From f1d57b7d89aed631ca9b33fbb401fa5826077550 Mon Sep 17 00:00:00 2001 From: newo-2001 Date: Sat, 12 Aug 2023 22:04:11 +0200 Subject: [PATCH] Make parsing in user settings setters consistent --- src/scripts/settings/userSettings.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scripts/settings/userSettings.js b/src/scripts/settings/userSettings.js index fa74584efe..a1d721c47f 100644 --- a/src/scripts/settings/userSettings.js +++ b/src/scripts/settings/userSettings.js @@ -436,7 +436,7 @@ export class UserSettings { */ backdropScreensaverInterval(val) { if (val !== undefined) { - return this.set('backdropScreensaverInterval', parseInt(val, 10), false); + return this.set('backdropScreensaverInterval', val.toString(), false); } return parseInt(this.get('backdropScreensaverInterval', false), 10) || 5; @@ -449,7 +449,7 @@ export class UserSettings { */ libraryPageSize(val) { if (val !== undefined) { - return this.set('libraryPageSize', parseInt(val, 10), false); + return this.set('libraryPageSize', val.toString(), false); } const libraryPageSize = parseInt(this.get('libraryPageSize', false), 10); @@ -468,7 +468,7 @@ export class UserSettings { */ maxDaysForNextUp(val) { if (val !== undefined) { - return this.set('maxDaysForNextUp', parseInt(val, 10), false); + return this.set('maxDaysForNextUp', val.toString(), false); } const maxDaysForNextUp = parseInt(this.get('maxDaysForNextUp', false), 10); @@ -487,7 +487,7 @@ export class UserSettings { */ enableRewatchingInNextUp(val) { if (val !== undefined) { - return this.set('enableRewatchingInNextUp', val, false); + return this.set('enableRewatchingInNextUp', val.toString(), false); } return toBoolean(this.get('enableRewatchingInNextUp', false), false);