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`
This commit is contained in:
parent
7ecd6c0c16
commit
bf3e53820d
@ -791,6 +791,13 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
$scope.showNicklist = 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;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user