Ver Fonte

undo tweak

David Sehnal há 5 anos atrás
pai
commit
7d3e849ff3
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/mol-plugin-state/manager/structure/component.ts

+ 1 - 1
src/mol-plugin-state/manager/structure/component.ts

@@ -289,7 +289,7 @@ class StructureComponentManager extends PluginComponent<StructureComponentManage
                 if (s.currentFocus.surroundings) deletes.delete(s.currentFocus.surroundings.cell.transform.ref);
             }
         }
-        return this.plugin.runTask(this.dataState.updateTree(deletes));
+        return this.plugin.runTask(this.dataState.updateTree(deletes, { canUndo: true }));
     }
 
     constructor(public plugin: PluginContext) {