🐞 fix(settings): fix fontsize limit

This commit is contained in:
thelastWallE 2021-09-05 18:32:13 +02:00
parent d4abe1da08
commit c3c03fb3f8
1 changed files with 4 additions and 4 deletions

View File

@ -32,10 +32,10 @@ $(function () {
self.markedForFileRemove = ko.observableArray([]);
self.checkFontsize = function () {
if (settings.settings.plugins.klipper.configuration.fontsize() > 20) {
settings.settings.plugins.klipper.configuration.fontsize(20)
} else if (settings.settings.plugins.klipper.configuration.fontsize()< 9) {
settings.settings.plugins.klipper.configuration.fontsize(9)
if (self.settings.settings.plugins.klipper.configuration.fontsize() > 20) {
self.settings.settings.plugins.klipper.configuration.fontsize(20)
} else if (self.settings.settings.plugins.klipper.configuration.fontsize()< 9) {
self.settings.settings.plugins.klipper.configuration.fontsize(9)
}
}
// initialize list helper