[graphics/krita] 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 2755e8e0effce1a68198881fe984203a3abf4783 by Dmitry Kazakov, on behalf of Luna Lovecraft.
Committed on 28/07/2026 at 11:30.
Pushed by dkazakov into branch 'master'.

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/2755e8e0effce1a68198881fe984203a3abf4783

diff --git a/libs/ui/kis_painting_assistants_decoration.cpp b/libs/ui/kis_painting_assistants_decoration.cpp
index 5eb9cdea9ed..09e659b6dbc 100644
--- a/libs/ui/kis_painting_assistants_decoration.cpp
+++ b/libs/ui/kis_painting_assistants_decoration.cpp
@@ -491,6 +491,7 @@ void KisPaintingAssistantsDecoration::toggleOutlineVisible()
 {
     // "outline" means assistant preview (line that depends on the mouse cursor)
     setOutlineVisible(!outlineVisibility());
+    uncache();
 }
 
 QColor KisPaintingAssistantsDecoration::globalAssistantsColor()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.