[graphics/krita/krita/6.0] libs/ui: Fix assistant preview not instantly updating when toggled
Dmitry Kazakov <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 0b59a76ed885b15211f86121e4abb51f80d27a02 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 preview not instantly updating when toggled
Before this commit if the assistant preview is toggled with a shortcut
the user would have to move the stylus/cursor slightly for it to
appear/disappear
M +1 -0 libs/ui/kis_painting_assistants_decoration.cpp
https://invent.kde.org/graphics/krita/-/commit/0b59a76ed885b15211f86121e4abb51f80d27a02
diff --git a/libs/ui/kis_painting_assistants_decoration.cpp b/libs/ui/kis_painting_assistants_decoration.cpp
index effefcbe0ae..8275899bc62 100644
--- a/libs/ui/kis_painting_assistants_decoration.cpp
+++ b/libs/ui/kis_painting_assistants_decoration.cpp
@@ -488,6 +488,7 @@ void KisPaintingAssistantsDecoration::toggleOutlineVisible()
{
// "outline" means assistant preview (line that depends on the mouse cursor)
setOutlineVisible(!outlineVisibility());
+ uncache();
}
QColor KisPaintingAssistantsDecoration::globalAssistantsColor()