Delete code that was doing an unnecessary rebuild of the treeController. This will be done by the controllers receiving the batch update notification.
This commit is contained in:
parent
6cf1e4539d
commit
56c81bba1f
|
@ -46,20 +46,12 @@ final class DeleteCommand: UndoableCommand {
|
||||||
}
|
}
|
||||||
|
|
||||||
func perform() {
|
func perform() {
|
||||||
|
|
||||||
BatchUpdate.shared.perform {
|
|
||||||
itemSpecifiers.forEach { $0.delete() {} }
|
itemSpecifiers.forEach { $0.delete() {} }
|
||||||
treeController.rebuild()
|
|
||||||
}
|
|
||||||
registerUndo()
|
registerUndo()
|
||||||
}
|
}
|
||||||
|
|
||||||
func undo() {
|
func undo() {
|
||||||
|
|
||||||
BatchUpdate.shared.perform {
|
|
||||||
itemSpecifiers.forEach { $0.restore() }
|
itemSpecifiers.forEach { $0.restore() }
|
||||||
treeController.rebuild()
|
|
||||||
}
|
|
||||||
registerRedo()
|
registerRedo()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue