fix: Dont set compact mode preference when initializing, b=no-bug, c=compact-mode

This commit is contained in:
mr. m
2025-07-13 13:47:04 +02:00
parent 98cf09f4e2
commit 9988994129

View File

@@ -107,7 +107,9 @@ var gZenCompactModeManager = {
lazyCompactMode.mainAppWrapper.setAttribute('zen-compact-mode', value);
document.documentElement.setAttribute('zen-compact-mode', value);
Services.xulStore.persist(lazyCompactMode.mainAppWrapper, 'zen-compact-mode');
Services.prefs.setBoolPref('zen.view.compact.should-enable-at-startup', value);
if (typeof this._wasInCompactMode === 'undefined') {
Services.prefs.setBoolPref('zen.view.compact.should-enable-at-startup', value);
}
this._updateEvent();
return value;
},