Compare commits
No commits in common. "b1858e4868d44e0f4474a540ac1dd79cd4c96f1d" and "e7ee70e69fe25ec5613bf1eaeecdf74c341cce6b" have entirely different histories.
b1858e4868
...
e7ee70e69f
2 changed files with 6 additions and 3 deletions
lazy_player
|
@ -1,6 +1,8 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import errno
|
||||
import os
|
||||
import sys
|
||||
from enum import Enum, auto
|
||||
from pathlib import Path
|
||||
from typing import Optional, overload
|
||||
|
@ -95,8 +97,9 @@ class FileItem(GObject.Object, Watcher):
|
|||
os.setxattr(
|
||||
self.full_path, f"user.lazy_player.{name}", str(value).encode("utf8")
|
||||
)
|
||||
except OSError:
|
||||
pass
|
||||
except OSError as err:
|
||||
if err.errno != errno.ENOTSUP:
|
||||
print(err, file=sys.stderr)
|
||||
|
||||
|
||||
class FileListModel(GObject.Object, Gio.ListModel):
|
||||
|
|
|
@ -463,7 +463,7 @@ class MainWindow(Gtk.ApplicationWindow, Watcher):
|
|||
for i in range(self.list_model.get_n_items()):
|
||||
if item := self.list_model.get_item(i):
|
||||
assert isinstance(item, FileItem)
|
||||
if not item.attempted_thumbnail.value:
|
||||
if not item.thumbnail.value:
|
||||
self.thumbnailer.generate_thumbnail(item)
|
||||
break
|
||||
|
||||
|
|
Loading…
Reference in a new issue