feat: Prevent rebuilding workspaces when customizing items, b=(no-bug), c=workspaces

This commit is contained in:
Mr. M
2025-05-20 17:27:58 +02:00
parent bb78fc165b
commit 133cce8bf8
3 changed files with 7 additions and 3 deletions

View File

@@ -37,10 +37,13 @@
}
connectedCallback() {
if (this.delayConnectedCallback()) {
if (this.delayConnectedCallback() || this._hasConnected) {
// If we are not ready yet, or if we have already connected, we
// don't need to do anything.
return;
}
this._hasConnected = true;
this.appendChild(this.constructor.fragment);
this.tabsContainer = this.querySelector('.zen-workspace-normal-tabs-section');

View File

@@ -5,10 +5,11 @@
}
connectedCallback() {
if (this.delayConnectedCallback()) {
if (this.delayConnectedCallback() || this._hasConnected) {
return;
}
this._hasConnected = true;
window.addEventListener('ZenWorkspacesUIUpdate', this, true);
}

View File

@@ -19,7 +19,7 @@
"brandShortName": "Zen",
"brandFullName": "Zen Browser",
"release": {
"displayVersion": "1.12.6b",
"displayVersion": "1.12.7b",
"github": {
"repo": "zen-browser/desktop"
},