PixelPaint: Make sure modified state is updated when undo_stack changes

This commit is contained in:
meiskam 2022-12-11 04:15:44 -05:00 committed by Andrew Kaster
parent b33aa1bc9b
commit 1943aef2cb

View file

@ -84,6 +84,7 @@ MainWidget::MainWidget()
m_tool_properties_widget->set_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);
return;
}
image_editor->update_modified();
auto make_action_text = [](auto prefix, auto suffix) {
StringBuilder builder;