]> cloud.milkyroute.net Git - dolphin.git/commit
Check if the item supports sequencing before looking for sequence pixmaps
authorAkseli Lahtinen <akselmo@akselmo.dev>
Wed, 14 May 2025 11:31:36 +0000 (14:31 +0300)
committerAkseli Lahtinen <akselmo@akselmo.dev>
Wed, 14 May 2025 11:31:36 +0000 (14:31 +0300)
commit832b7c4a1b820043fd0b0191d937050107694ed9
tree5004559817292a7f258350276510ce1ad9c6fd5a
parentaf9735e720fc3d38c3511edb961b1928c91bc855
Check if the item supports sequencing before looking for sequence pixmaps

This patch checks the item first if the plugin it's using for it's previews even supports sequences. If not, we can then safely ignore the hover action for polling more sequences and avoid unnecessary work.

The sequencing support is false by default, so we set it true only when we know it's possible.
src/kitemviews/kfileitemlistwidget.cpp
src/kitemviews/kfileitemmodelrolesupdater.cpp