PixelPaint: Add "Clear Guides" to remove all Guides

This patch adds a "Clear Guides" option to the "View"-menu.
This commit is contained in:
Tobias Christiansen 2021-09-10 17:41:28 +02:00 committed by Andreas Kling
commit 6f2a016565
Notes: sideshowbarker 2024-07-18 04:19:06 +09:00
2 changed files with 8 additions and 1 deletions

View file

@ -45,6 +45,7 @@ public:
{
m_guides.remove_first_matching([&](auto& entry) { return &guide == entry.ptr(); });
}
void clear_guides() { m_guides.clear(); }
void layers_did_change();