@@ -46,14 +46,12 @@ class WorkspaceLayoutModel {
4646 aiPanelWrapperRef : HTMLDivElement | null ;
4747 vtabPanelWrapperRef : HTMLDivElement | null ;
4848 panelVisibleAtom : jotai . PrimitiveAtom < boolean > ;
49- vtabVisibleAtom : jotai . PrimitiveAtom < boolean > ;
5049
5150 private inResize : boolean ;
5251 private aiPanelVisible : boolean ;
5352 private aiPanelWidth : number | null ;
5453 private vtabWidth : number ;
5554 private vtabVisible : boolean ;
56- private initialized : boolean = false ;
5755 private transitionTimeoutRef : NodeJS . Timeout | null = null ;
5856 private focusTimeoutRef : NodeJS . Timeout | null = null ;
5957 private debouncedPersistAIWidth : ( ) => void ;
@@ -73,7 +71,6 @@ class WorkspaceLayoutModel {
7371 this . vtabWidth = VTabBar_DefaultWidth ;
7472 this . vtabVisible = false ;
7573 this . panelVisibleAtom = jotai . atom ( false ) ;
76- this . vtabVisibleAtom = jotai . atom ( false ) ;
7774 this . initializeFromMeta ( ) ;
7875
7976 this . handleWindowResize = this . handleWindowResize . bind ( this ) ;
@@ -156,7 +153,6 @@ class WorkspaceLayoutModel {
156153 const tabBarPosition = globalStore . get ( getSettingsKeyAtom ( "app:tabbar" ) ) ?? "top" ;
157154 const showLeftTabBar = tabBarPosition === "left" && ! isBuilderWindow ( ) ;
158155 this . vtabVisible = showLeftTabBar ;
159- globalStore . set ( this . vtabVisibleAtom , showLeftTabBar ) ;
160156 } catch ( e ) {
161157 console . warn ( "Failed to initialize from tab meta:" , e ) ;
162158 }
@@ -297,7 +293,6 @@ class WorkspaceLayoutModel {
297293 this . aiPanelWrapperRef = aiPanelWrapperRef ;
298294 this . vtabPanelWrapperRef = vtabPanelWrapperRef ?? null ;
299295 this . vtabVisible = showLeftTabBar ?? false ;
300- globalStore . set ( this . vtabVisibleAtom , this . vtabVisible ) ;
301296 this . syncPanelCollapse ( ) ;
302297 this . commitLayouts ( window . innerWidth ) ;
303298 }
@@ -428,7 +423,6 @@ class WorkspaceLayoutModel {
428423 setShowLeftTabBar ( showLeftTabBar : boolean ) : void {
429424 if ( this . vtabVisible === showLeftTabBar ) return ;
430425 this . vtabVisible = showLeftTabBar ;
431- globalStore . set ( this . vtabVisibleAtom , showLeftTabBar ) ;
432426 this . enableTransitions ( 250 ) ;
433427 this . syncPanelCollapse ( ) ;
434428 this . commitLayouts ( window . innerWidth ) ;
0 commit comments