From 078075ec7f630c1cfdacb8ace3ebc3f8a3949f08 Mon Sep 17 00:00:00 2001 From: JarbasAI <33701864+JarbasAl@users.noreply.github.com> Date: Tue, 5 Nov 2024 01:39:13 +0000 Subject: [PATCH] fix: wallpaper settings (#44) * fix: wallpaper settings closes https://github.com/OpenVoiceOS/ovos-gui-plugin-shell-companion/issues/19 * fix: wallpaper settings closes https://github.com/OpenVoiceOS/ovos-gui-plugin-shell-companion/issues/19 --- ovos_gui_plugin_shell_companion/__init__.py | 5 +++++ requirements.txt | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ovos_gui_plugin_shell_companion/__init__.py b/ovos_gui_plugin_shell_companion/__init__.py index 4e9542e..426e836 100644 --- a/ovos_gui_plugin_shell_companion/__init__.py +++ b/ovos_gui_plugin_shell_companion/__init__.py @@ -69,6 +69,7 @@ def register_bus_events(self): self.gui.register_handler("mycroft.device.settings.about.page", self.handle_device_about_page) self.gui.register_handler("mycroft.device.settings.display", self.handle_device_display_settings) self.gui.register_handler("mycroft.device.settings.factory", self.handle_device_display_factory) + self.gui.register_handler("mycroft.device.settings.wallpapers", self.handle_device_wallpaper_settings) # Display settings self.gui.register_handler("speaker.extension.display.set.auto.dim", @@ -142,6 +143,10 @@ def handle_device_display_settings(self, message): self.gui['display_auto_nightmode'] = self.config.get("auto_nightmode", False) self.gui.show_page("AdditionalSettings", override_idle=True) + def handle_device_wallpaper_settings(self, message): + self.gui['state'] = 'settings/wallpaper_settings' + self.gui.show_page("AdditionalSettings", override_idle=True) + def handle_device_about_page(self, message): # TODO: Move `system_information` generation to util method uname_info = platform.uname() diff --git a/requirements.txt b/requirements.txt index e961b8d..8d24b27 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ ovos-plugin-manager>=0.5.5,<1.0.0 ovos-utils>=0.0.34,<1.0.0 -ovos-bus-client>=0.0.3,<1.0.0 +ovos-bus-client>=0.0.8,<2.0.0 astral~=3.0