1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:37:47 +00:00

PixelPaint: Use GUI::MessageBox::ask_about_unsaved_changes()

To make the last-saved-at timestamp show up correctly, we also now mark
the editor's undo stack as unmodified on save.
This commit is contained in:
Andreas Kling 2022-01-04 17:56:10 +01:00
parent 82b071943d
commit 490d385d01
2 changed files with 8 additions and 2 deletions

View file

@ -43,6 +43,8 @@ public:
bool undo();
bool redo();
auto& undo_stack() { return *m_undo_stack; }
void add_guide(NonnullRefPtr<Guide> guide) { m_guides.append(guide); }
void remove_guide(Guide const& guide)
{