[Pale-Moon] Issue #1722 - Part 1: Allow hiding pinned tabs for the Ctrl-Tab graphical pane

pull/24/head
FranklinDM 3 years ago committed by Roy Tam
parent 2f02432034
commit 1743bff855
  1. 9
      application/palemoon/base/content/browser-tabPreviews.js

@ -225,6 +225,15 @@ var ctrlTab = {
}
}
let hidePinnedTabs = gPrefService.getBoolPref("browser.ctrlTab.hidePinnedTabs");
if (hidePinnedTabs) {
regularTabsList = list.filter(function (tab) !tab.pinned);
// Don't hide pinned tabs if we only have 1 regular tab
if (regularTabsList.length > 1) {
list = regularTabsList;
}
}
return this._tabList = list;
},

Loading…
Cancel
Save