selected_item = self.gallery.selected_item
display_name = '(none)'
if selected_item:
- display_name = selected_item.full_path
if isinstance(selected_item, ImgItem):
params_strs = [f'{k}: {getattr(selected_item, k.lower())}'
for k in GEN_PARAMS]
bookmarked = 'BOOKMARK' if selected_item.bookmarked else ''
self.metadata.set_text(
'\n'.join([title, bookmarked] + params_strs))
+ display_name = selected_item.full_path
+ elif isinstance(selected_item, DirItem):
+ display_name = selected_item.full_path
total = len([s for s in self.gallery.slots
if isinstance(s.item, (DirItem, ImgItem))])
n_selected = self.gallery.selected_idx + 1