mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:08:13 +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
4 changed files with 13 additions and 16 deletions
|
@ -345,8 +345,7 @@ FontEditorWidget::FontEditorWidget(const String& path, RefPtr<Gfx::BitmapFont>&&
|
|||
did_modify_font();
|
||||
};
|
||||
|
||||
m_glyph_editor_widget->on_undo_event = [this](bool) {
|
||||
// FIXME: UndoStack no longer has finalization concept, so this needs some fixing.
|
||||
m_glyph_editor_widget->on_undo_event = [this] {
|
||||
m_undo_stack->push(make<GlyphUndoCommand>(*m_undo_glyph));
|
||||
did_change_undo_stack();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue