feat: Added pref for wheel closing an unloaded pinned tab, b=no-bug, c=workspaces, tabs

This commit is contained in:
mr. m
2025-09-06 21:12:23 +02:00
parent 1c5044b90d
commit 434066aa6f
2 changed files with 8 additions and 1 deletions

View File

@@ -36,6 +36,9 @@
value: '@cond'
condition: '!defined(MOZILLA_OFFICIAL)' # Section: Pinned tabs management
- name: zen.pinned-tab-manager.wheel-close-if-pending
value: true
- name: zen.pinned-tab-manager.debug
value: false

View File

@@ -615,7 +615,11 @@
async _onTabClick(e) {
const tab = e.target?.closest('tab');
if (e.button === 1 && tab) {
await this._onCloseTabShortcut(e, tab, { closeIfPending: true });
await this._onCloseTabShortcut(e, tab, {
closeIfPending: Services.prefs.getBoolPref(
'zen.pinned-tab-manager.wheel-close-if-pending'
),
});
}
}