From 863432f788637862a226adc59386735cf8a22967 Mon Sep 17 00:00:00 2001 From: Roman Date: Sun, 31 Dec 2023 22:22:35 +0100 Subject: [PATCH] Fixing the default backend bug This should fix the issue #23 --- waypaper/app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/waypaper/app.py b/waypaper/app.py index 1917ce4..f05e97e 100644 --- a/waypaper/app.py +++ b/waypaper/app.py @@ -400,6 +400,7 @@ class App(Gtk.Window): def on_image_clicked(self, widget, path): """On clicking an image, set it as a wallpaper and save""" + self.cf.backend = combo.get_active_text() self.cf.selected_wallpaper = path self.selected_index = self.image_paths.index(path) self.load_image_grid() @@ -426,6 +427,7 @@ class App(Gtk.Window): def set_random_wallpaper(self): """Choose a random image and set it as the wallpaper""" + self.cf.backend = combo.get_active_text() self.cf.selected_wallpaper = get_random_file(self.cf.image_folder, self.cf.include_subfolders) if self.cf.selected_wallpaper is None: return @@ -497,6 +499,7 @@ class App(Gtk.Window): wallpaper_path = self.image_paths[self.selected_index] self.cf.selected_wallpaper = wallpaper_path print(self.txt.msg_path, self.cf.selected_wallpaper) + self.cf.backend = combo.get_active_text() self.cf.fill_option = self.fill_option_combo.get_active_text() or self.cf.fill_option change_wallpaper(self.cf.selected_wallpaper, self.cf, self.cf.selected_monitor, self.txt, self.missing_backends) self.cf.save()