diff options
author | meiskam <634802+meiskam@users.noreply.github.com> | 2022-12-11 04:15:44 -0500 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2022-12-15 00:14:35 -0700 |
commit | 1943aef2cbde161d7e70ad538645ac805acbe734 (patch) | |
tree | 960202bcd3ecf9d712dd865e66913a265fa5cca1 | |
parent | b33aa1bc9b0e853a2d7da028d079981b9b4a3ea7 (diff) | |
download | serenity-1943aef2cbde161d7e70ad538645ac805acbe734.zip |
PixelPaint: Make sure modified state is updated when undo_stack changes
-rw-r--r-- | Userland/Applications/PixelPaint/MainWidget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Applications/PixelPaint/MainWidget.cpp b/Userland/Applications/PixelPaint/MainWidget.cpp index fb09611a9e..e1401a9156 100644 --- a/Userland/Applications/PixelPaint/MainWidget.cpp +++ b/Userland/Applications/PixelPaint/MainWidget.cpp @@ -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; |