Fix thumbnailer
This commit is contained in:
parent
8be6b21bed
commit
03c9357c01
1 changed files with 3 additions and 4 deletions
|
@ -42,11 +42,11 @@ class Thumbnailer(ThreadPoolExecutor):
|
|||
if not file_item.full_path.is_file():
|
||||
return
|
||||
|
||||
if file_item.attempted_thumbnail:
|
||||
if file_item.attempted_thumbnail.value:
|
||||
return
|
||||
|
||||
self.submit(generate_thumbnail_sync_nicely, file_item)
|
||||
file_item.attempted_thumbnail = True
|
||||
file_item.attempted_thumbnail.value = True
|
||||
|
||||
|
||||
def generate_thumbnail_sync_nicely(file_item: FileItem):
|
||||
|
@ -115,8 +115,7 @@ def generate_thumbnail_sync(file_item: FileItem):
|
|||
buffer.unmap(map_info)
|
||||
|
||||
def set_thumbnail():
|
||||
file_item.thumbnail = thumbnail
|
||||
file_item.has_thumbnail = True
|
||||
file_item.thumbnail.value = thumbnail
|
||||
|
||||
GLib.idle_add(set_thumbnail)
|
||||
|
||||
|
|
Loading…
Reference in a new issue