Skip to content

Commit

Permalink
Merge pull request #1038 from lorenzhs/fix-nicklist-font
Browse files Browse the repository at this point in the history
Fix nicklist not being affected by favorite font setting
  • Loading branch information
lorenzhs committed Nov 8, 2018
2 parents 73cfbe3 + bf3e538 commit 934e853
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/glowingbear.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit 934e853

Please sign in to comment.