From 49c7cc9a0517da93c144bf95a76499fccf235faf Mon Sep 17 00:00:00 2001 From: Emma Nora Theuer Date: Wed, 16 Oct 2024 18:41:54 +0200 Subject: [PATCH] Update code to reflect changes in wallman_systray.py --- src/wallman_lib.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wallman_lib.py b/src/wallman_lib.py index 22e74c0..fbaea28 100644 --- a/src/wallman_lib.py +++ b/src/wallman_lib.py @@ -224,7 +224,7 @@ class WallpaperLogic(_ConfigLib): self._notify_user() return has_wallpaper_been_set - def run_wallpapers(self): + def schedule_wallpapers(self): def _schedule_background_wallpapers(): from apscheduler.schedulers.background import BackgroundScheduler scheduler = BackgroundScheduler() @@ -251,9 +251,9 @@ class WallpaperLogic(_ConfigLib): from functools import partial scheduler = _schedule_background_wallpapers() menu = systray.Menu ( - systray.item("Re-Set Wallpaper", partial(systray.set_wallpaper_again, callback=self.set_wallpaper_by_time)), - systray.item("Reroll Wallpapers", partial(systray.reroll_wallpapers, first_callback=self._choose_wallpaper_set, second_callback=self.set_wallpaper_by_time)), - systray.item("Quit", partial(systray.on_quit, callback=scheduler.shutdown)) + systray.item("Re-Set Wallpaper", partial(systray.set_wallpaper_again, wallpaper_setter=self.set_wallpaper_by_time)), + systray.item("Reroll Wallpapers", partial(systray.reroll_wallpapers, wallpaper_chooser=self._choose_wallpaper_set, wallpaper_setter=self.set_wallpaper_by_time)), + systray.item("Quit", partial(systray.on_quit, shutdown_scheduler=scheduler.shutdown)) ) icon = systray.Icon("wallman_icon", systray.icon_image, "My Tray Icon", menu) icon.run()