mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:27:44 +00:00
PixelPaint: Update window modified
to look at all tabs
This causes the corner X to correctly have dots when any of the open tabs have unsaved changes. Event calls and undo stack modifications have been collected to one spot.
This commit is contained in:
parent
fb4315d121
commit
b33aa1bc9b
5 changed files with 45 additions and 23 deletions
|
@ -58,10 +58,8 @@ LevelsDialog::LevelsDialog(GUI::Window* parent_window, ImageEditor* editor)
|
|||
};
|
||||
|
||||
apply_button->on_click = [this](auto) {
|
||||
if (m_did_change) {
|
||||
m_editor->on_modified_change(true);
|
||||
if (m_did_change)
|
||||
m_editor->did_complete_action("Levels"sv);
|
||||
}
|
||||
|
||||
cleanup_resources();
|
||||
done(ExecResult::OK);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue