LibGUI: Don't fire TextDocument change notification after each command

The undo stack has its own notification mechanism now, and we no longer
piggyback on the document change notifications.
This commit is contained in:
Andreas Kling 2021-05-08 15:45:00 +02:00
parent 50cb80649f
commit aaa96e909b
Notes: sideshowbarker 2024-07-18 18:29:06 +09:00

View file

@ -701,7 +701,6 @@ void TextDocument::redo()
void TextDocument::add_to_undo_stack(NonnullOwnPtr<TextDocumentUndoCommand> undo_command)
{
m_undo_stack.push(move(undo_command));
notify_did_change();
}
TextDocumentUndoCommand::TextDocumentUndoCommand(TextDocument& document)