mirror of
https://github.com/zen-browser/desktop.git
synced 2026-08-28 09:21:32 +00:00
feat: Fixed folders on new windows not expanding at startup, b=no-bug, c=common, folders, tabs, workspaces
This commit is contained in:
@@ -21,8 +21,8 @@ class ZenSessionStore extends nsZenPreloadedFeature {
|
||||
if (tabData.zenSyncId || tabData.zenPinnedId) {
|
||||
tab.setAttribute('id', tabData.zenSyncId || tabData.zenPinnedId);
|
||||
}
|
||||
if (tabData.zenHasStaticLabel) {
|
||||
tab.setAttribute('zen-has-static-label', 'true');
|
||||
if (tabData.zenStaticLabel) {
|
||||
tab.zenStaticLabel = tabData.zenStaticLabel;
|
||||
}
|
||||
if (tabData.zenHasStaticIcon) {
|
||||
tab.setAttribute('zen-has-static-icon', 'true');
|
||||
|
||||
@@ -1306,12 +1306,12 @@ window.gZenVerticalTabsManager = {
|
||||
// Check if name is blank, reset if so
|
||||
// Always remove, so we can always rename and if it's empty,
|
||||
// it will reset to the original name anyway
|
||||
this._tabEdited.removeAttribute('zen-has-static-label');
|
||||
if (hasChanged) {
|
||||
this._tabEdited.zenStaticLabel = newName;
|
||||
gBrowser._setTabLabel(this._tabEdited, newName);
|
||||
this._tabEdited.setAttribute('zen-has-static-label', 'true');
|
||||
gZenUIManager.showToast('zen-tabs-renamed');
|
||||
} else {
|
||||
delete this._tabEdited.zenStaticLabel;
|
||||
gBrowser.setTabTitle(this._tabEdited);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user