[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 955962504a
commit 2f02432034
  1. 1
      application/palemoon/app/profile/palemoon.js
  2. 9
      application/palemoon/base/content/browser-tabPreviews.js

@ -469,6 +469,7 @@ pref("browser.tabs.delayHidingAudioPlayingIconMS", 3000);
pref("browser.allTabs.previews", true);
pref("browser.ctrlTab.previews", true);
pref("browser.ctrlTab.hidePinnedTabs", false);
pref("browser.ctrlTab.recentlyUsedLimit", 7);
// By default, do not export HTML at shutdown.

@ -216,6 +216,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