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() {
|
||||
|
||||
BatchUpdate.shared.perform {
|
||||
itemSpecifiers.forEach { $0.delete() {} }
|
||||
treeController.rebuild()
|
||||
}
|
||||
registerUndo()
|
||||
}
|
||||
|
||||
func undo() {
|
||||
|
||||
BatchUpdate.shared.perform {
|
||||
itemSpecifiers.forEach { $0.restore() }
|
||||
treeController.rebuild()
|
||||
}
|
||||
registerRedo()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue