add: hashtag to album page to go directly on the picture you clicked

This commit is contained in:
2025-05-06 22:42:22 +02:00
parent 5fc12d5d33
commit 129dfe7df9
4 changed files with 9 additions and 6 deletions

View File

@ -26,9 +26,11 @@ def scan_pages(folders: list[Path]) -> list[Page]:
page: Page = Page(folder, folder.get_name(), prev=prev)
raw: Path = Path(folder, folder.get_name() + ".NEF")
id: int = 0
for file in files:
if file.get_name().endswith(".png"):
page.add_picture(Picture(file, page=page, raw=raw))
page.add_picture(Picture(file, id, page=page, raw=raw))
id += 1
if len(page.get_pictures()) == 0:
bar.next()