mirror of
https://github.com/zen-browser/desktop
synced 2026-04-25 17:15:00 +02:00
feat: Allow pinned tabs to be collapsible, p=#11753, c=tabs, folders, workspaces
* fix: Fixed restoring the previous pinned state clearing up the custom icon, b=no-bug, c=tabs * feat: Allow pinned tabs to be collapsible, b=no-bug, c=tabs, folders, workspaces * fix: Fixed new folder context menu item not working, b=no-bug, c=common, folders
This commit is contained in:
@@ -322,11 +322,14 @@ class nsZenPinnedTabManager extends nsZenDOMOperatedFeature {
|
||||
const state = this.#getTabState(tab);
|
||||
|
||||
const initialState = tab._zenPinnedInitialState;
|
||||
if (!initialState?.entry) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Remove everything except the entry we want to keep
|
||||
state.entries = [initialState.entry];
|
||||
|
||||
state.image = initialState.image;
|
||||
state.image = tab.zenStaticIcon || initialState.image;
|
||||
state.index = 0;
|
||||
|
||||
SessionStore.setTabState(tab, state);
|
||||
|
||||
Reference in New Issue
Block a user