From 6c72bdc31b042c15204233b4f0ea24d01f7f72b0 Mon Sep 17 00:00:00 2001 From: Emma Nora Theuer Date: Sun, 26 Jan 2025 23:34:46 +0100 Subject: [PATCH] Fix bug where wallpaper_list could not be assigned --- src/wallman_lib.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wallman_lib.py b/src/wallman_lib.py index 0a44aac..9b4e30b 100644 --- a/src/wallman_lib.py +++ b/src/wallman_lib.py @@ -211,7 +211,8 @@ class ConfigValidity(_ConfigLib): class WallpaperLogic(_ConfigLib): def __init__(self) -> None: super().__init__() - self.chosen_wallpaper_set: str = "fFTojkvCLIkGVlC6vUo4701djCZczmJDiyHKj4Qdj0zwkLyETsPxP88DLmY9In0I" + self.wallpaper_list: List[str] = None # pyright: ignore + self.chosen_wallpaper_set: str = None # pyright: ignore # NOTE: This function could be in a different file because it's not needed in the case only 1 wallpaper per set is needed. # Returns a list of a split string that contains a changing time from the config file @@ -261,7 +262,7 @@ class WallpaperLogic(_ConfigLib): # TODO: Add an way for the user to choose if the wallpaper should scale, fill or otherwise. This needs to be editable in the config file. def set_wallpaper_by_time(self) -> bool: # Ensure use of a consistent wallpaper set - if self.chosen_wallpaper_set != "fFTojkvCLIkGVlC6vUo4701djCZczmJDiyHKj4Qdj0zwkLyETsPxP88DLmY9In0I": + if not self.chosen_wallpaper_set: self._choose_wallpaper_set() for time_range in range(self.config_total_changing_times - 1): self.current_time_range = time_range # Store current time for better debugging output