Add files via upload

This commit is contained in:
J. J. Ramsey 2024-07-08 22:47:26 -04:00 committed by GitHub
parent 2726a64d1c
commit 777ef9a344
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 7 deletions

View File

@ -51,9 +51,6 @@ args = parser.parse_args()
def run(): def run():
"""Read user arguments and either run GUI app or just reset the wallpaper""" """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) cf.read_parameters_from_user_arguments(args)
# Set the wallpaper and quit: # Set the wallpaper and quit:

View File

@ -426,7 +426,7 @@ class App(Gtk.Window):
def on_fill_option_changed(self, combo) -> None: def on_fill_option_changed(self, combo) -> None:
"""Save fill parameter when it was changed""" """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: 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.selected_index = self.image_paths.index(path)
self.load_image_grid() self.load_image_grid()
print(self.txt.msg_path, self.cf.selected_wallpaper) 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) change_wallpaper(self.cf.selected_wallpaper, self.cf, self.cf.selected_monitor, self.txt)
self.cf.save() self.cf.save()
@ -495,7 +495,7 @@ class App(Gtk.Window):
if self.cf.selected_wallpaper is None: if self.cf.selected_wallpaper is None:
return return
print(self.txt.msg_path, self.cf.selected_wallpaper) 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) change_wallpaper(self.cf.selected_wallpaper, self.cf, self.cf.selected_monitor, self.txt)
self.cf.save() self.cf.save()
@ -569,7 +569,7 @@ class App(Gtk.Window):
self.cf.selected_wallpaper = wallpaper_path self.cf.selected_wallpaper = wallpaper_path
print(self.txt.msg_path, self.cf.selected_wallpaper) print(self.txt.msg_path, self.cf.selected_wallpaper)
self.cf.backend = self.backend_option_combo.get_active_text() 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) change_wallpaper(self.cf.selected_wallpaper, self.cf, self.cf.selected_monitor, self.txt)
self.cf.save() self.cf.save()