feat: Don't make unecesary writes to disk for pinned tabs, b=no-bug, c=tabs

This commit is contained in:
Mr. M
2025-11-07 14:13:09 +01:00
parent 5b4ae1db09
commit 026f2de87c

View File

@@ -778,6 +778,10 @@
return;
}
const existingPin = this._pinsCache.find((p) => p.uuid === pin.uuid);
if (existingPin && existingPin === pin) {
// We want to avoid unnecessary writes
return;
}
if (existingPin) {
Object.assign(existingPin, pin);
} else {