mirror of
https://github.com/mathuo/dockview
synced 2025-07-24 02:46:04 +00:00
feat: only update text content if required
This commit is contained in:
parent
48a1cc9693
commit
a7b05cf1a8
@ -104,6 +104,8 @@ export class DefaultTab extends CompositeDisposable implements ITabRenderer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private render() {
|
private render() {
|
||||||
this._content.textContent = this.params.title;
|
if (this._content.textContent !== this.params.title) {
|
||||||
|
this._content.textContent = this.params.title;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user