feat(pinned-tab-url-reset): add option to reset pinned tab to originally pinned url

Adds a new setting to enable or disable pinned tab url resetting on pressing close tab shortcut.

Persists pinned tab url and label on browser closing.
This commit is contained in:
Kristijan Ribarić
2024-10-01 16:31:58 +02:00
parent 593a9244a4
commit b185773daf
5 changed files with 42 additions and 6 deletions

View File

@@ -1020,4 +1020,9 @@ Preferences.addAll([
type: 'bool',
default: false,
},
{
id: 'zen.tab-unloader.reset-pinned-tab-on-close-shortcut',
type: 'bool',
default: true,
},
]);

View File

@@ -48,6 +48,10 @@
data-l10n-id="zen-tabs-unloader-enabled"
preference="zen.tab-unloader.enabled"/>
<checkbox id="zenPinnedTabResetOnCloseShortcutEnable"
data-l10n-id="zen-tabs-pinned-reset-close-shortcut-enabled"
preference="zen.tab-unloader.reset-pinned-tab-on-close-shortcut"/>
<label><html:h2 data-l10n-id="zen-tabs-unloader-unload-delay"/></label>
<hbox id="zenTabsUnloadDelayContainer">
<description class="description-deemphasized" data-l10n-id="zen-tabs-unloader-unload-delay-description" />