@@ -462,7 +462,7 @@ export class WaveBrowserWindow extends BaseWindow {
462462 this . finalizePositioning ( ) ;
463463 } else {
464464 console . log ( "reusing an existing tab, calling wave-init" , tabView . waveTabId ) ;
465- await tabView . webContents . send ( "wave-init" , tabView . savedInitOpts ) ; // reinit
465+ tabView . webContents . send ( "wave-init" , tabView . savedInitOpts ) ; // reinit
466466 this . finalizePositioning ( ) ;
467467 }
468468
@@ -480,35 +480,6 @@ export class WaveBrowserWindow extends BaseWindow {
480480 } , 30 ) ;
481481 }
482482
483- private async repositionTabsSlowly ( delayMs : number ) {
484- const activeTabView = this . activeTabView ;
485- const winBounds = this . getContentBounds ( ) ;
486- if ( activeTabView == null ) {
487- return ;
488- }
489- if ( activeTabView . isOnScreen ( ) ) {
490- activeTabView . setBounds ( {
491- x : 0 ,
492- y : 0 ,
493- width : winBounds . width ,
494- height : winBounds . height ,
495- } ) ;
496- } else {
497- activeTabView . setBounds ( {
498- x : winBounds . width - 10 ,
499- y : winBounds . height - 10 ,
500- width : winBounds . width ,
501- height : winBounds . height ,
502- } ) ;
503- }
504- await delay ( delayMs ) ;
505- if ( this . activeTabView != activeTabView ) {
506- // another tab view has been set, do not finalize this layout
507- return ;
508- }
509- this . finalizePositioning ( ) ;
510- }
511-
512483 private finalizePositioning ( ) {
513484 if ( this . isDestroyed ( ) ) {
514485 return ;
@@ -543,10 +514,10 @@ export class WaveBrowserWindow extends BaseWindow {
543514 }
544515 }
545516
546- private removeTabViewLater ( tabId : string , _delayMs : number ) {
517+ private removeTabViewLater ( tabId : string , delayMs : number ) {
547518 setTimeout ( ( ) => {
548519 this . removeTabView ( tabId , false ) ;
549- } , 1000 ) ;
520+ } , delayMs ) ;
550521 }
551522
552523 // the queue and this function are used to serialize operations that update the window contents view
0 commit comments