mirror of
https://github.com/anufrievroman/waypaper.git
synced 2024-08-16 11:40:44 +03:00
fix: Only update config for --random
This commit is contained in:
parent
7b9642ec8a
commit
5584783641
@ -52,12 +52,12 @@ def run():
|
||||
|
||||
if args.random:
|
||||
w = get_random_file(cf.backend, cf.image_folder, cf.include_subfolders)
|
||||
cf.selected_wallpaper = str(w)
|
||||
cf.save()
|
||||
|
||||
if w is None:
|
||||
continue
|
||||
|
||||
cf.selected_wallpaper = w
|
||||
cf.save()
|
||||
|
||||
change_wallpaper(w, cf, monitor, txt)
|
||||
time.sleep(0.1)
|
||||
|
Loading…
Reference in New Issue
Block a user