Skip to content
Snippets Groups Projects
Commit d7954c2c authored by eri451's avatar eri451
Browse files

one step closer

not done yet
parent 5d40a6dd
No related branches found
No related tags found
No related merge requests found
......@@ -181,6 +181,16 @@ group.commands.add(['sessionl[oad]'],
return;
}
// delete inactive groups --> only vivisble tabs will remain
tabs.getGroups( function ({ GroupItems }) {
let activeGroup = GroupItems.getActiveGroupItem();
let items = GroupItems.groupItems;
for(let i in items){
if (items[i].id !== activeGroup.id)
items[i].closeAll();
}
});
let curtab = gBrowser.mCurrentTab;
if(!args.bang) tabs.keepOnly(curtab); //FIXME deletes only visible tabs
let sessionscript = io.source(file.path);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment