Bug 469618

Summary: Moving layers in layer stack causes thumbnail to disappear temporarily
Product: [Applications] krita Reporter: Lynx3d <lynx.mw+kde>
Component: Layer StackAssignee: Dmitry Kazakov <dimula73>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Lynx3d 2023-05-11 12:43:48 UTC
Every time you move a layer in the layer stack (move up/down, change parent etc.), the layer thumbnail goes blank for ~5s.
And if you undo the change before the thumbnail is regerated, it doesn't get restored until something else triggers thumbnail updates.

Krita master f0a28f5ad2e2f5f7950a1b4cbfd7eb55fbbfe8af
Comment 1 Dmitry Kazakov 2023-05-16 12:39:08 UTC
Git commit 0e564cea6ee24d57b388662d1bd4b5767d55fed2 by Dmitry Kazakov.
Committed on 16/05/2023 at 12:38.
Pushed by dkazakov into branch 'master'.

Fix layer thumbnails not to reset on every node move

M  +2    -0    libs/ui/KisIdleTasksManager.cpp
M  +21   -1    libs/ui/KisLayerThumbnailCache.cpp
M  +2    -0    libs/ui/KisLayerThumbnailCache.h
M  +2    -5    libs/ui/kis_node_model.cpp
M  +0    -2    libs/ui/kis_node_model.h
M  +0    -1    plugins/dockers/layerdocker/LayerBox.cpp

https://invent.kde.org/graphics/krita/commit/0e564cea6ee24d57b388662d1bd4b5767d55fed2