mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 21:12:26 +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
Notes:
sideshowbarker
2024-07-18 18:31:17 +09:00
Author: https://github.com/awesomekling
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