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:
parent
74a4571f02
commit
0cb6103928
2 changed files with 25 additions and 0 deletions
|
@ -31,6 +31,8 @@ public:
|
|||
|
||||
void clear();
|
||||
|
||||
Function<void()> on_state_change;
|
||||
|
||||
private:
|
||||
struct Combo {
|
||||
NonnullOwnPtrVector<Command> commands;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue