mirror of
https://github.com/fergalmoran/picard.git
synced 2026-03-06 05:23:59 +00:00
Add sorting key for data
This commit is contained in:
@@ -143,7 +143,7 @@ class CoverArtThumbnail(ActiveLabel):
|
||||
has_common_images = True
|
||||
|
||||
w, h, displacements = (128, 128, 20)
|
||||
key = hash(tuple(sorted(self.data)) + (has_common_images,))
|
||||
key = hash(tuple(sorted(self.data, key=lambda x: x.types_as_string())) + (has_common_images,))
|
||||
try:
|
||||
pixmap = self._pixmap_cache[key]
|
||||
except KeyError:
|
||||
|
||||
Reference in New Issue
Block a user