mirror of
https://github.com/anufrievroman/waypaper.git
synced 2024-11-22 15:46:39 +03:00
Add files via upload
This commit is contained in:
parent
2726a64d1c
commit
777ef9a344
@ -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:
|
||||||
|
@ -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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user