Fix Select tool's broken undo (#1597)

Fix select tool undo
This commit is contained in:
zhiyuan
2024-02-05 14:40:27 -08:00
committed by Keavon Chambers
parent 7e5069f638
commit e1735ddf84
3 changed files with 12 additions and 4 deletions
@@ -809,7 +809,7 @@ impl MessageHandler<DocumentMessage, DocumentInputs<'_>> for DocumentMessageHand
}
Undo => {
self.undo_in_progress = true;
responses.add(ToolMessage::PreUndo);
responses.add(DocumentMessage::DocumentHistoryBackward);
responses.add(OverlaysMessage::Draw);
responses.add(DocumentMessage::UndoFinished);