From 777ef9a34419eed3e91c6940c8cbe7a0317f0203 Mon Sep 17 00:00:00 2001 From: "J. J. Ramsey" Date: Mon, 8 Jul 2024 22:47:26 -0400 Subject: [PATCH] Add files via upload --- waypaper/__main__.py | 3 --- waypaper/app.py | 8 ++++---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/waypaper/__main__.py b/waypaper/__main__.py index a9d53be..fe6d853 100644 --- a/waypaper/__main__.py +++ b/waypaper/__main__.py @@ -51,9 +51,6 @@ args = parser.parse_args() def run(): """Read user arguments and either run GUI app or just reset the wallpaper""" - if args.restore: - cf.read() - cf.read_parameters_from_user_arguments(args) # Set the wallpaper and quit: diff --git a/waypaper/app.py b/waypaper/app.py index a8bf8ba..928f5bf 100644 --- a/waypaper/app.py +++ b/waypaper/app.py @@ -426,7 +426,7 @@ class App(Gtk.Window): def on_fill_option_changed(self, combo) -> None: """Save fill parameter when it was changed""" - self.cf.fill_option = combo.get_active_text() + self.cf.fill_option = combo.get_active_text().lower() def on_monitor_option_changed(self, combo) -> None: @@ -468,7 +468,7 @@ class App(Gtk.Window): self.selected_index = self.image_paths.index(path) self.load_image_grid() print(self.txt.msg_path, self.cf.selected_wallpaper) - self.cf.fill_option = self.fill_option_combo.get_active_text() or self.cf.fill_option + self.cf.fill_option = self.fill_option_combo.get_active_text().lower() or self.cf.fill_option change_wallpaper(self.cf.selected_wallpaper, self.cf, self.cf.selected_monitor, self.txt) self.cf.save() @@ -495,7 +495,7 @@ class App(Gtk.Window): if self.cf.selected_wallpaper is None: return print(self.txt.msg_path, self.cf.selected_wallpaper) - self.cf.fill_option = self.fill_option_combo.get_active_text() or self.cf.fill_option + self.cf.fill_option = self.fill_option_combo.get_active_text().lower() or self.cf.fill_option change_wallpaper(self.cf.selected_wallpaper, self.cf, self.cf.selected_monitor, self.txt) self.cf.save() @@ -569,7 +569,7 @@ class App(Gtk.Window): self.cf.selected_wallpaper = wallpaper_path print(self.txt.msg_path, self.cf.selected_wallpaper) self.cf.backend = self.backend_option_combo.get_active_text() - self.cf.fill_option = self.fill_option_combo.get_active_text() or self.cf.fill_option + self.cf.fill_option = self.fill_option_combo.get_active_text().lower() or self.cf.fill_option change_wallpaper(self.cf.selected_wallpaper, self.cf, self.cf.selected_monitor, self.txt) self.cf.save()