mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-25 02:21:25 +02:00
Fix stal=0 on FF4.
This commit is contained in:
@@ -127,6 +127,9 @@ const ConfigBase = Class(ModuleBase, {
|
|||||||
*/
|
*/
|
||||||
scripts: [],
|
scripts: [],
|
||||||
|
|
||||||
|
get tabStrip()
|
||||||
|
Class.replaceProperty(this, "tabStrip", document.getElementById("TabsToolbar") || this.tabbrowser.mTabContainer),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @property {string} The leaf name of any temp files created by
|
* @property {string} The leaf name of any temp files created by
|
||||||
* {@link io.createTempFile}.
|
* {@link io.createTempFile}.
|
||||||
|
|||||||
@@ -31,7 +31,8 @@ const Tabs = Module("tabs", {
|
|||||||
// hide tabs initially to prevent flickering when 'stal' would hide them
|
// hide tabs initially to prevent flickering when 'stal' would hide them
|
||||||
// on startup
|
// on startup
|
||||||
if (config.hasTabbrowser)
|
if (config.hasTabbrowser)
|
||||||
config.tabbrowser.mTabContainer.collapsed = true; // FIXME: see 'stal' comment
|
config.tabStrip.collapsed = true; // FIXME: see 'stal' comment
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_updateTabCount: function () {
|
_updateTabCount: function () {
|
||||||
@@ -987,7 +988,7 @@ const Tabs = Module("tabs", {
|
|||||||
// don't have to fight against the host app's attempts to keep
|
// don't have to fight against the host app's attempts to keep
|
||||||
// it open - hack! Adding a filter watch to mStrip is probably
|
// it open - hack! Adding a filter watch to mStrip is probably
|
||||||
// the cleanest solution.
|
// the cleanest solution.
|
||||||
let tabStrip = config.tabbrowser.mTabContainer;
|
let tabStrip = config.tabStrip;
|
||||||
|
|
||||||
if (value == 0)
|
if (value == 0)
|
||||||
tabStrip.collapsed = true;
|
tabStrip.collapsed = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user