feat: don't fire events during toJSON()

This commit is contained in:
mathuo 2021-10-16 19:41:33 +01:00
parent af88a17950
commit 725f364186

View File

@ -681,14 +681,7 @@ export class DockviewComponent
.filter((p) => this._panels.has(p.id))
.forEach((panel) => {
panel.setDirty(false);
this._onGridEvent.fire({
kind: GroupChangeKind.PANEL_CLEAN,
});
});
this._onGridEvent.fire({
kind: GroupChangeKind.LAYOUT_CONFIG_UPDATED,
});
}
private _addPanel(options: AddPanelOptions): IGroupPanel {