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
commit 0cb6103928
Notes: sideshowbarker 2024-07-18 18:31:17 +09:00
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;