File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ private static void UpdateGutterMenu(int gutterLevel)
138
138
139
139
static QuickToggle ( )
140
140
{
141
- // Setup initial state of editor prefs
141
+ // Setup initial state of editor prefs if there are no prefs keys yet
142
142
string [ ] resetPrefs = new string [ ] { PrefKeyShowToggle , PrefKeyShowDividers , PrefKeyShowIcons } ;
143
143
foreach ( string prefKey in resetPrefs )
144
144
{
@@ -157,8 +157,9 @@ static QuickToggle()
157
157
// Not calling BuildStyles() in constructor because script gets loaded
158
158
// on Unity initialization, styles might not be loaded yet
159
159
160
- // Reset mouse state and
160
+ // Reset mouse state
161
161
ResetVars ( ) ;
162
+ // Setup quick toggle
162
163
ShowQuickToggle ( EditorPrefs . GetBool ( PrefKeyShowToggle ) ) ;
163
164
}
164
165
@@ -167,6 +168,7 @@ private static void ShowQuickToggle(bool show)
167
168
EditorPrefs . SetBool ( PrefKeyShowToggle , show ) ;
168
169
showDivider = EditorPrefs . GetBool ( PrefKeyShowDividers , false ) ;
169
170
showIcons = EditorPrefs . GetBool ( PrefKeyShowIcons , false ) ;
171
+ gutterCount = EditorPrefs . GetInt ( PrefKeyGutterLevel ) ;
170
172
171
173
if ( show )
172
174
{
You can’t perform that action at this time.
0 commit comments