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 761761 const workspaceElement = gZenWorkspaces . workspaceElement ( workspaceId ) ;
762762 const pinnedTabsContainer = workspaceElement . pinnedTabsContainer ;
763763 pinnedTabsContainer . insertBefore ( folder , pinnedTabsContainer . lastChild ) ;
764- folder . setAttribute ( 'zen-workspace-id' , workspaceId ) ;
765764 for ( const tab of folder . tabs ) {
766765 tab . setAttribute ( 'zen-workspace-id' , workspaceId ) ;
766+ // This sets the ID for the current folder and any sub-folder
767+ // we may encounter
768+ tab . group . setAttribute ( 'zen-workspace-id' , workspaceId ) ;
767769 gBrowser . TabStateFlusher . flush ( tab . linkedBrowser ) ;
768770 if ( gZenWorkspaces . _lastSelectedWorkspaceTabs [ workspaceId ] === tab ) {
769771 // This tab is no longer the last selected tab in the previous workspace because it's being moved to a new workspace
772774 }
773775 folder . dispatchEvent ( new CustomEvent ( 'ZenFolderChangedWorkspace' , { bubbles : true } ) ) ;
774776 gZenWorkspaces . changeWorkspaceWithID ( workspaceId ) . then ( ( ) => {
775- gBrowser . moveTabTo ( folder , { elementIndex : gBrowser . pinnedTabCount , forceUngrouped : true } ) ;
777+ gBrowser . moveTabTo ( folder , { elementIndex : 0 , forceUngrouped : true } ) ;
776778 } ) ;
777779 }
778780
You can’t perform that action at this time.
0 commit comments