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 761
761
const workspaceElement = gZenWorkspaces . workspaceElement ( workspaceId ) ;
762
762
const pinnedTabsContainer = workspaceElement . pinnedTabsContainer ;
763
763
pinnedTabsContainer . insertBefore ( folder , pinnedTabsContainer . lastChild ) ;
764
- folder . setAttribute ( 'zen-workspace-id' , workspaceId ) ;
765
764
for ( const tab of folder . tabs ) {
766
765
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 ) ;
767
769
gBrowser . TabStateFlusher . flush ( tab . linkedBrowser ) ;
768
770
if ( gZenWorkspaces . _lastSelectedWorkspaceTabs [ workspaceId ] === tab ) {
769
771
// This tab is no longer the last selected tab in the previous workspace because it's being moved to a new workspace
772
774
}
773
775
folder . dispatchEvent ( new CustomEvent ( 'ZenFolderChangedWorkspace' , { bubbles : true } ) ) ;
774
776
gZenWorkspaces . changeWorkspaceWithID ( workspaceId ) . then ( ( ) => {
775
- gBrowser . moveTabTo ( folder , { elementIndex : gBrowser . pinnedTabCount , forceUngrouped : true } ) ;
777
+ gBrowser . moveTabTo ( folder , { elementIndex : 0 , forceUngrouped : true } ) ;
776
778
} ) ;
777
779
}
778
780
You can’t perform that action at this time.
0 commit comments