[Editor] Remove useless and faulty code when destroying the global manager

This commit is contained in:
Calixte Denizet 2022-07-08 11:49:19 +02:00
parent b0a3c9e8cf
commit cec2172225

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();