Merge pull request #15151 from calixteman/15149

[Editor] Remove useless and faulty code when destroying the global manager
This commit is contained in:
Jonas Jenwald 2022-07-08 11:58:14 +02:00 committed by GitHub
commit efbd429115
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -435,9 +435,6 @@ class AnnotationEditorUIManager {
layer.destroy();
}
this.#allLayers.clear();
for (const editor of this.#allEditors.values()) {
editor.destroy();
}
this.#allEditors.clear();
this.#activeEditor = null;
this.#clipboardManager.destroy();