Bug 1715786 - Observe dynamic changes to the ScrollToClick system pref. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D119684
This commit is contained in:
Markus Stange 2021-07-12 23:17:28 +00:00
Родитель c4e62f99d4
Коммит 56da3bf9e0
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -624,6 +624,12 @@ bool nsLookAndFeel::NativeGetFont(FontID aID, nsString& aFontName, gfxFontStyle&
name:@"AppleAquaScrollBarVariantChanged"
object:nil
suspensionBehavior:NSNotificationSuspensionBehaviorDeliverImmediately];
[NSDistributedNotificationCenter.defaultCenter
addObserver:self
selector:@selector(cachedValuesChanged)
name:@"AppleNoRedisplayAppearancePreferenceChanged"
object:nil
suspensionBehavior:NSNotificationSuspensionBehaviorCoalesce];
[NSDistributedNotificationCenter.defaultCenter
addObserver:self
selector:@selector(cachedValuesChanged)