From e845bccdae9d126907150f71d8725a2957c99803 Mon Sep 17 00:00:00 2001 From: Emma Nora Theuer Date: Wed, 16 Oct 2024 18:41:22 +0200 Subject: [PATCH] Significantly improved code readability --- src/wallman_systray.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/wallman_systray.py b/src/wallman_systray.py index f50ca60..18bed22 100644 --- a/src/wallman_systray.py +++ b/src/wallman_systray.py @@ -18,19 +18,19 @@ except ImportError: raise # This should always be ran with "set_wallpaper_by_time" as input! -def set_wallpaper_again(icon, item, callback): +def set_wallpaper_again(icon, item, wallpaper_setter): logging.info("Re-Setting wallpaper due to systray input.") - callback() + wallpaper_setter() -def reroll_wallpapers(icon, item, first_callback, second_callback): +def reroll_wallpapers(icon, item, wallpaper_chooser, wallpaper_setter): logging.info("Rerolling Wallpaper sets and resetting wallpaper due to systray input") - first_callback() - second_callback() + wallpaper_chooser() + wallpaper_setter() # This should always be ran with "scheduler.shutdown" as input! -def on_quit(icon, item, callback): +def on_quit(icon, item, shutdown_scheduler): logging.info("Shutting down wallman due to systray input.") - callback() + shutdown_scheduler() icon.stop()