From 5584783641daf4bb254706172df7a2f0ca946978 Mon Sep 17 00:00:00 2001 From: Aaron Dunlap Date: Fri, 16 Feb 2024 08:03:20 -0600 Subject: [PATCH] fix: Only update config for --random --- waypaper/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/waypaper/__main__.py b/waypaper/__main__.py index cc216e1..c33bbf1 100644 --- a/waypaper/__main__.py +++ b/waypaper/__main__.py @@ -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)