mirror of
https://github.com/zen-browser/desktop.git
synced 2026-08-07 07:29:00 +00:00
feat: Don't make unecesary writes to disk for pinned tabs, b=no-bug, c=tabs
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user