File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
- {type}: {message}, b=({bugId}), c={components }
1
+ {bugId} - {message}, c={components}, t={type }
Original file line number Diff line number Diff line change 23
23
) {
24
24
return ;
25
25
}
26
+ this . promiseInitialized = new Promise ( ( resolve ) => {
27
+ this . _resolveInitialized = resolve ;
28
+ } ) ;
26
29
this . dragStartPosition = null ;
27
30
28
31
ChromeUtils . defineLazyGetter ( this , 'panel' , ( ) =>
116
119
this . initContextMenu ( ) ;
117
120
this . initPredefinedColors ( ) ;
118
121
119
- this . _hasInitialized = true ;
122
+ this . _resolveInitialized ( ) ;
123
+ delete this . _resolveInitialized ;
120
124
this . onDarkModeChange ( null ) ;
121
125
}
122
126
1102
1106
let workspaceTheme = theme || workspace . theme ;
1103
1107
1104
1108
await this . foreachWindowAsActive ( async ( browser ) => {
1105
- if ( ! browser . gZenThemePicker ?. _hasInitialized ) {
1109
+ if ( browser . closing || ( await browser . gZenThemePicker ?. promiseInitialized ) ) {
1106
1110
return ;
1107
1111
}
1108
1112
// Do not rebuild if the workspace is not the same as the current one
You can’t perform that action at this time.
0 commit comments