瀏覽代碼

undo tweak

David Sehnal 5 年之前
父節點
當前提交
7d3e849ff3
共有 1 個文件被更改,包括 1 次插入1 次删除
  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) {