mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:47:44 +00:00
PixelPaint: Move request_close_editor()
logic inside ImageEditor
This allows us to request any specific editor to close itself. Earlier, this could only be done for the currently active editor, so trying to close inactive tabs would not work properly.
This commit is contained in:
parent
c2b3bab984
commit
6c60bf7537
4 changed files with 25 additions and 26 deletions
|
@ -109,6 +109,8 @@ public:
|
|||
Gfx::FloatPoint image_position_to_editor_position(Gfx::IntPoint const&) const;
|
||||
Gfx::FloatPoint editor_position_to_image_position(Gfx::IntPoint const&) const;
|
||||
|
||||
bool request_close();
|
||||
|
||||
void save_project_as();
|
||||
void save_project();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue