mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-21 14:55:37 +00:00
feat: Added pref for wheel closing an unloaded pinned tab, b=no-bug, c=workspaces, tabs
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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'
|
||||
),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user