Compare commits
2 commits
e7ee70e69f
...
b1858e4868
Author | SHA1 | Date | |
---|---|---|---|
b1858e4868 | |||
6d9fd25cd1 |
2 changed files with 3 additions and 6 deletions
lazy_player
|
@ -1,8 +1,6 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import errno
|
||||
import os
|
||||
import sys
|
||||
from enum import Enum, auto
|
||||
from pathlib import Path
|
||||
from typing import Optional, overload
|
||||
|
@ -97,9 +95,8 @@ class FileItem(GObject.Object, Watcher):
|
|||
os.setxattr(
|
||||
self.full_path, f"user.lazy_player.{name}", str(value).encode("utf8")
|
||||
)
|
||||
except OSError as err:
|
||||
if err.errno != errno.ENOTSUP:
|
||||
print(err, file=sys.stderr)
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
|
||||
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.thumbnail.value:
|
||||
if not item.attempted_thumbnail.value:
|
||||
self.thumbnailer.generate_thumbnail(item)
|
||||
break
|
||||
|
||||
|
|
Loading…
Reference in a new issue