Remove tab pruning option as it is basically the opposite of existing auto-sticky feature
This commit is contained in:
parent
330bc6f0a8
commit
d60459fbd4
|
@ -98,6 +98,13 @@ _tabbro_ = function() {
|
|||
for(var i in thewindow.tabs) {
|
||||
if(thewindow.tabs[i].id == tabid) {
|
||||
thewindow.tabs.splice(i, 1)
|
||||
|
||||
// Check if the tab has 0 windows now - remove it if it does
|
||||
// TODO fix this
|
||||
if(thewindow.tabs.length == 0) {
|
||||
this.t_removeWindow(thewindow.id)
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
}
|
||||
|
@ -574,7 +581,7 @@ _tabbro_ = function() {
|
|||
var thetab = bro.t_getTab(tabid)
|
||||
|
||||
|
||||
if(thetab && thetab.sticky && !bro.options.pruneStickyTabs) {
|
||||
if(thetab && thetab.sticky) {
|
||||
// If the tab is sticky, we only mark it as closed
|
||||
thetab.id = null
|
||||
} else {
|
||||
|
|
10
options.html
10
options.html
|
@ -20,16 +20,6 @@
|
|||
<span class="off">When a new tab is opened, it will not be sticky. If the parent window is closed, only stick tabs are saved.</span>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<label class="clearfix">
|
||||
<input type="checkbox" class="toggle" id="pruneStickyTabs" />
|
||||
<strong>Prune sticky tabs</strong>
|
||||
</label>
|
||||
<div class="answer">
|
||||
<span class="on">When a tab is closed in a sticky window, it will be removed.</span>
|
||||
<span class="off">When a tab is closed in a sticky window, it will be saved under that window.</span>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<br />
|
||||
<br />
|
||||
|
|
Loading…
Reference in New Issue