mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 17:48:37 +00:00
FontEditor: Save discrete undo and redo states for each Command
Makes undo/redo actions compatible with the updated UndoStack sans finalization. Fixes having to click actions twice.
This commit is contained in:
parent
92fb2e2a28
commit
a621932c11
Notes:
sideshowbarker
2024-07-18 05:14:45 +09:00
Author: https://github.com/thankyouverycool
Commit: a621932c11
Pull-request: https://github.com/SerenityOS/serenity/pull/9626
Reviewed-by: https://github.com/AtkinsSJ ✅
4 changed files with 13 additions and 16 deletions
|
@ -47,7 +47,7 @@ public:
|
|||
void set_mode(Mode mode) { m_mode = mode; }
|
||||
|
||||
Function<void(int)> on_glyph_altered;
|
||||
Function<void(bool finalize)> on_undo_event;
|
||||
Function<void()> on_undo_event;
|
||||
|
||||
private:
|
||||
GlyphEditorWidget() {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue