1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +00:00

LibGUI: Add UndoStack::on_state_change hook

This will allow clients to react to the undo stack changing state.
It's invoked when the stack or clean index are changed.
This commit is contained in:
Andreas Kling 2021-05-08 13:14:52 +02:00
parent 74a4571f02
commit 0cb6103928
2 changed files with 25 additions and 0 deletions

View file

@ -31,6 +31,8 @@ public:
void clear();
Function<void()> on_state_change;
private:
struct Combo {
NonnullOwnPtrVector<Command> commands;