1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:17:44 +00:00

PixelPaint: Add GUI for editing layer names :^)

This commit is contained in:
Andreas Kling 2020-07-23 20:48:28 +02:00
parent 955d3c22c7
commit 65ec655b0d
4 changed files with 30 additions and 1 deletions

View file

@ -69,4 +69,12 @@ void Layer::set_opacity_percent(int opacity_percent)
m_image.layer_did_modify_properties({}, *this);
}
void Layer::set_name(const String& name)
{
if (m_name == name)
return;
m_name = name;
m_image.layer_did_modify_properties({}, *this);
}
}