File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
browser/app/profile/features Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -12,3 +12,6 @@ pref('zen.view.compact.color-sidebar', true);
12
12
pref (' zen.view.compact.animate-sidebar' , true );
13
13
pref (' zen.view.compact.show-sidebar-and-toolbar-on-hover' , true );
14
14
pref (' zen.view.compact.show-background-tab-toast' , true );
15
+
16
+ # Do not edit manually
17
+ pref (' zen.view.compact.should-enable-at-startup' , false );
Original file line number Diff line number Diff line change @@ -36,11 +36,12 @@ var gZenCompactModeManager = {
36
36
preInit ( ) {
37
37
// Remove it before initializing so we can properly calculate the width
38
38
// of the sidebar at startup and avoid overflowing items not being hidden
39
- this . _wasInCompactMode = Services . xulStore . getValue (
40
- AppConstants . BROWSER_CHROME_URL ,
41
- 'zen-main-app-wrapper' ,
42
- 'zen-compact-mode'
43
- ) ;
39
+ this . _wasInCompactMode =
40
+ Services . xulStore . getValue (
41
+ AppConstants . BROWSER_CHROME_URL ,
42
+ 'zen-main-app-wrapper' ,
43
+ 'zen-compact-mode'
44
+ ) || Services . prefs . getBoolPref ( 'zen.view.compact.should-enable-at-startup' , false ) ;
44
45
lazyCompactMode . mainAppWrapper . removeAttribute ( 'zen-compact-mode' ) ;
45
46
46
47
this . addContextMenu ( ) ;
@@ -106,6 +107,7 @@ var gZenCompactModeManager = {
106
107
lazyCompactMode . mainAppWrapper . setAttribute ( 'zen-compact-mode' , value ) ;
107
108
document . documentElement . setAttribute ( 'zen-compact-mode' , value ) ;
108
109
Services . xulStore . persist ( lazyCompactMode . mainAppWrapper , 'zen-compact-mode' ) ;
110
+ Services . prefs . setBoolPref ( 'zen.view.compact.should-enable-at-startup' , value ) ;
109
111
this . _updateEvent ( ) ;
110
112
return value ;
111
113
} ,
You can’t perform that action at this time.
0 commit comments