Skip to content

Commit 434066a

Browse files
committed
feat: Added pref for wheel closing an unloaded pinned tab, b=no-bug, c=workspaces, tabs
1 parent 1c5044b commit 434066a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

prefs/workspaces.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
value: '@cond'
3737
condition: '!defined(MOZILLA_OFFICIAL)' # Section: Pinned tabs management
3838

39+
- name: zen.pinned-tab-manager.wheel-close-if-pending
40+
value: true
41+
3942
- name: zen.pinned-tab-manager.debug
4043
value: false
4144

src/zen/tabs/ZenPinnedTabManager.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,11 @@
615615
async _onTabClick(e) {
616616
const tab = e.target?.closest('tab');
617617
if (e.button === 1 && tab) {
618-
await this._onCloseTabShortcut(e, tab, { closeIfPending: true });
618+
await this._onCloseTabShortcut(e, tab, {
619+
closeIfPending: Services.prefs.getBoolPref(
620+
'zen.pinned-tab-manager.wheel-close-if-pending'
621+
),
622+
});
619623
}
620624
}
621625

0 commit comments

Comments
 (0)