1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 08:22:28 +01:00

Only update tab ordinals when 'guioptions' ~= /[nN]/

This commit is contained in:
Kris Maglione
2009-10-11 15:53:16 -04:00
parent 1c6e31a73b
commit afbab3c3ef

View File

@@ -2268,8 +2268,9 @@ function StatusLine() //{{{
return void setTimeout(function () statusline.updateTabCount(false), 0);
// update the ordinal which is used for numbered tabs
for (let [i, tab] in util.Array.iteritems(getBrowser().mTabs))
tab.setAttribute("ordinal", i + 1);
if (options.get("guioptions").has("n", "N"))
for (let [i, tab] in util.Array.iteritems(getBrowser().mTabs))
tab.setAttribute("ordinal", i + 1);
tabCountWidget.value = "[" + (tabs.index() + 1) + "/" + tabs.count + "]";
}