mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:47:34 +00:00
PixelPaint: Call set_modified on window
Call set_modified on window in order to reflect unsaved changed in the titlebar's close button
This commit is contained in:
parent
7eb672c457
commit
ff8a6d8e59
3 changed files with 18 additions and 0 deletions
|
@ -87,6 +87,7 @@ public:
|
|||
Function<void(Gfx::IntPoint const&)> on_image_mouse_position_change;
|
||||
|
||||
Function<void(void)> on_leave;
|
||||
Function<void(bool modified)> on_modified_change;
|
||||
|
||||
bool request_close();
|
||||
|
||||
|
@ -110,6 +111,8 @@ public:
|
|||
|
||||
void set_loaded_from_image(bool);
|
||||
|
||||
bool is_modified();
|
||||
|
||||
private:
|
||||
explicit ImageEditor(NonnullRefPtr<Image>);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue