┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/information/informationpanelcontent.h
diff options
context:
space:
mode:
authorPan Zhang <[email protected]>2025-09-26 10:27:41 +0800
committerPan Zhang <[email protected]>2025-09-28 12:12:03 +0800
commit96019a8592788932443fe0d0efc8ea44af2cf948 (patch)
treebca4a20ca7259156819cbb5a49cbf94ee38caf95 /src/panels/information/informationpanelcontent.h
parentbca5cb1585d859721297c46ec4ee543c06ad179b (diff)
informationpanelcontent: prevent repeated disabled effect on previews
When switching files quickly in the Information Panel, the preview pixmap could appear progressively brighter/whiter. This happened because markOutdatedPreview() was applying KIconEffect::toDisabled() multiple times on the same pixmap while a preview job was still pending. This patch fixes the issue by: - Tracking the URL that was last disabled, and only applying the disabled effect once per URL. - Clearing the disabled state whenever a new preview job starts or when a new pixmap is shown. With this change, the "disabled preview" effect is preserved (still useful for slow HDD or network filesystems), but the progressive white-out artifact no longer occurs when navigating rapidly. BUG: 507844
Diffstat (limited to 'src/panels/information/informationpanelcontent.h')
-rw-r--r--src/panels/information/informationpanelcontent.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/panels/information/informationpanelcontent.h b/src/panels/information/informationpanelcontent.h
index 58adfb9c0..e305eddde 100644
--- a/src/panels/information/informationpanelcontent.h
+++ b/src/panels/information/informationpanelcontent.h
@@ -154,6 +154,7 @@ private:
QDialogButtonBox *m_configureButtons;
bool m_isVideo;
+ QUrl m_disabledPreviewUrl;
};
#endif // INFORMATIONPANELCONTENT_H