1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:08:10 +00:00

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

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)