[graphics/krita/krita/6.0] libs/ui: Fix assistant not updating when toggled with an action
Dmitry Kazakov <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 79513dcc4b5b1e857ebb95c6eba3facb3669db94 by Dmitry Kazakov, on behalf of Luna Lovecraft.
Committed on 28/07/2026 at 11:31.
Pushed by dkazakov into branch 'krita/6.0'.
Fix assistant not updating when toggled with an action
Before this commit when the assistant is being toggled with an action
the canvas doesn't always update immediately, causing it to not be
visible until the canvas is hovered
BUG:522511
M +5 -0 libs/ui/kis_painting_assistants_decoration.cpp
https://invent.kde.org/graphics/krita/-/commit/79513dcc4b5b1e857ebb95c6eba3facb3669db94
diff --git a/libs/ui/kis_painting_assistants_decoration.cpp b/libs/ui/kis_painting_assistants_decoration.cpp
index 2c08c8f8f61..effefcbe0ae 100644
--- a/libs/ui/kis_painting_assistants_decoration.cpp
+++ b/libs/ui/kis_painting_assistants_decoration.cpp
@@ -472,6 +472,11 @@ void KisPaintingAssistantsDecoration::uncache()
Q_FOREACH (KisPaintingAssistantSP assistant, assistants()) {
assistant->uncache();
}
+
+ // Redraw canvas decorations in case the change was made off canvas
+ if (d->m_canvas) {
+ d->m_canvas->updateCanvasDecorations();
+ }
}
void KisPaintingAssistantsDecoration::toggleAssistantVisible()
{