Significantly improved code readability
This commit is contained in:
parent
c169438896
commit
e845bccdae
1 changed files with 7 additions and 7 deletions
|
@ -18,19 +18,19 @@ except ImportError:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
# This should always be ran with "set_wallpaper_by_time" as input!
|
# 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.")
|
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")
|
logging.info("Rerolling Wallpaper sets and resetting wallpaper due to systray input")
|
||||||
first_callback()
|
wallpaper_chooser()
|
||||||
second_callback()
|
wallpaper_setter()
|
||||||
|
|
||||||
# This should always be ran with "scheduler.shutdown" as input!
|
# 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.")
|
logging.info("Shutting down wallman due to systray input.")
|
||||||
callback()
|
shutdown_scheduler()
|
||||||
icon.stop()
|
icon.stop()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue