From bf3e53820d5d9e4501d69efadd8ea5d26703de65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20H=C3=BCbschle-Schneider?= Date: Mon, 5 Nov 2018 17:36:37 +0100 Subject: [PATCH] Fix nicklist not being affected by favorite font setting Fixes #1033 The alternative would be to just make the nicklist div `ng-show` instead of `ng-if` --- js/glowingbear.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/glowingbear.js b/js/glowingbear.js index b0a1093..21b7926 100644 --- a/js/glowingbear.js +++ b/js/glowingbear.js @@ -791,6 +791,13 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', return true; } $scope.showNicklist = true; + // hack: retrigger the favorite-font update mechanism when showing the + // nicklist because the div is ng-if=showNicklist instead of ng-show for + // performance reasons (especially on mobile) + $timeout(function() { + utils.changeClassStyle('favorite-font', 'fontFamily', settings.fontfamily); + utils.changeClassStyle('favorite-font', 'fontSize', settings.fontsize); + }, 0); return true; };