From b8df4605b42d9a61bb4ae4731efabbdc38166063 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Mon, 16 Jun 2025 21:50:38 -0500 Subject: add config and add application thread manager --- lazycachelist.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lazycachelist.py') diff --git a/lazycachelist.py b/lazycachelist.py index b08b85d..3b2744d 100644 --- a/lazycachelist.py +++ b/lazycachelist.py @@ -1,6 +1,7 @@ from dataclasses import dataclass, asdict from texture import ImageTextureImmichAsset +from manager import PixMan @dataclass class Album: @@ -34,8 +35,8 @@ class CallbackStateData: class LazyCachingTextureList(): - def __init__(self, immich_connector, album_ids, max_cache_items=100, change_callback=None): - self.immich_connector = immich_connector + def __init__(self, album_ids, max_cache_items=100, change_callback=None): + self.immich_connector = PixMan().immich_connector assert max_cache_items >= 20, "Minimum cache items is 20" # Double small radius # Ring buffer -- cgit v1.2.3