mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-02 18:25:45 +01:00
Only apply tab binding if tab numbers are enabled.
This commit is contained in:
@@ -136,9 +136,11 @@ const liberator = (function () //{{{
|
||||
},
|
||||
setter: function (opts)
|
||||
{
|
||||
const self = this;
|
||||
let classes = [v[1] for ([k, v] in Iterator(this.opts)) if (opts.indexOf(k) < 0)];
|
||||
let css = classes.length ? classes.join(",") + "{ display: none; }" : "";
|
||||
styles.addSheet(true, "taboptions", "chrome://*", css);
|
||||
tabs.tabsBound = Array.some(opts, function(k) k in self.opts);
|
||||
statusline.updateTabCount();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user