1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:47:34 +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:
meiskam 2022-12-11 04:12:37 -05:00 committed by Andrew Kaster
parent fb4315d121
commit b33aa1bc9b
5 changed files with 45 additions and 23 deletions

View file

@ -120,6 +120,10 @@ public:
void set_editor_color_to_color_at_mouse_position(GUI::MouseEvent const& event, bool sample_all_layers);
void set_modified(DeprecatedString action_text);
void set_unmodified();
void update_modified();
private:
explicit ImageEditor(NonnullRefPtr<Image>);