From c3c03fb3f82a91d9a4ff90b1797bdcec32f21e09 Mon Sep 17 00:00:00 2001 From: thelastWallE <12502210+thelastWallE@users.noreply.github.com> Date: Sun, 5 Sep 2021 18:32:13 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(settings):=20fix=20fontsize?= =?UTF-8?q?=20limit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- octoprint_klipper/static/js/klipper_settings.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/octoprint_klipper/static/js/klipper_settings.js b/octoprint_klipper/static/js/klipper_settings.js index b1d8aa8..2118691 100644 --- a/octoprint_klipper/static/js/klipper_settings.js +++ b/octoprint_klipper/static/js/klipper_settings.js @@ -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