diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2025-06-24 23:13:04 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2025-06-24 23:13:04 -0500 |
| commit | 14eb01ff466ac78b2912d325a45786545d495f45 (patch) | |
| tree | 10951a06c0747f53b427921f1f02881aa30a9657 | |
| parent | 1b1987f28df0eaf3f47fc5833e17a803f7ba1b8c (diff) | |
| download | immich-frame-14eb01ff466ac78b2912d325a45786545d495f45.tar.xz immich-frame-14eb01ff466ac78b2912d325a45786545d495f45.zip | |
init window at end of manage func
| -rw-r--r-- | manager.py | 9 | ||||
| -rw-r--r-- | settings.py | 3 |
2 files changed, 5 insertions, 7 deletions
@@ -92,10 +92,6 @@ class PixMan: else: self.config.update(**config) - # Initialize window if immich parameters are valid - if self.config.immich_url and self.config.immich_api_key and not self.display: - self.init_window() - if self.display: self.display.update_config() @@ -106,6 +102,11 @@ class PixMan: # If all goes well self.config.save(self.configfile) + + # Initialize window if immich parameters are valid + if self.config.immich_url and self.config.immich_api_key and not self.display: + self.init_window() + return True diff --git a/settings.py b/settings.py index 69e40ca..ce76e82 100644 --- a/settings.py +++ b/settings.py @@ -18,9 +18,6 @@ class Config: # Albums data album_list: list[str] = field(default_factory=list) - #def __dict__(self): - # return asdict(self) - @classmethod def load(cls, filepath): with open(filepath, "r") as fp: |
