mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +00:00
PixelPaint: Make sure modified state is updated when undo_stack changes
This commit is contained in:
parent
b33aa1bc9b
commit
1943aef2cb
1 changed files with 2 additions and 0 deletions
|
@ -84,6 +84,7 @@ MainWidget::MainWidget()
|
||||||
m_tool_properties_widget->set_enabled(false);
|
m_tool_properties_widget->set_enabled(false);
|
||||||
set_actions_enabled(false);
|
set_actions_enabled(false);
|
||||||
}
|
}
|
||||||
|
update_window_modified();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -117,6 +118,7 @@ void MainWidget::image_editor_did_update_undo_stack()
|
||||||
m_redo_action->set_enabled(false);
|
m_redo_action->set_enabled(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
image_editor->update_modified();
|
||||||
|
|
||||||
auto make_action_text = [](auto prefix, auto suffix) {
|
auto make_action_text = [](auto prefix, auto suffix) {
|
||||||
StringBuilder builder;
|
StringBuilder builder;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue