File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -107,14 +107,16 @@ export var ZenCustomizableUI = new (class {
107
107
_initCreateNewButton ( window ) {
108
108
const button = window . document . getElementById ( 'zen-create-new-button' ) ;
109
109
button . addEventListener ( 'command' , ( ) => {
110
- if ( button . hasAttribute ( 'zen-ignore- open' ) ) {
110
+ if ( button . hasAttribute ( 'open' ) ) {
111
111
return ;
112
112
}
113
113
const image = button . querySelector ( 'image' ) ;
114
114
const popup = window . document . getElementById ( 'zenCreateNewPopup' ) ;
115
- button . setAttribute ( 'zen-ignore- open' , 'true' ) ;
115
+ button . setAttribute ( 'open' , 'true' ) ;
116
116
const handlePopupHidden = ( ) => {
117
- button . removeAttribute ( 'zen-ignore-open' ) ;
117
+ window . setTimeout ( ( ) => {
118
+ button . removeAttribute ( 'open' ) ;
119
+ } , 100 ) ;
118
120
window . gZenUIManager . motion . animate (
119
121
image ,
120
122
{ transform : [ 'rotate(45deg)' , 'rotate(0deg)' ] } ,
Original file line number Diff line number Diff line change 303
303
gURLBar . textbox . style . opacity = 0 ;
304
304
}
305
305
306
+ this . remove ( ) ;
306
307
gZenUIManager . updateTabsToolbar ( ) ;
307
308
308
309
const workspace = await gZenWorkspaces . getActiveWorkspace ( ) ;
320
321
bounce : 0 ,
321
322
}
322
323
) ;
324
+
323
325
gBrowser . tabContainer . style . opacity = '' ;
324
326
if ( gZenVerticalTabsManager . _hasSetSingleToolbar ) {
325
327
gURLBar . textbox . style . opacity = '' ;
330
332
}
331
333
332
334
this . #hiddenElements = [ ] ;
333
-
334
- this . remove ( ) ;
335
335
}
336
336
}
337
337
You can’t perform that action at this time.
0 commit comments