diff --git a/ovos_gui_plugin_shell_companion/__init__.py b/ovos_gui_plugin_shell_companion/__init__.py index ce31afa..1058f9e 100644 --- a/ovos_gui_plugin_shell_companion/__init__.py +++ b/ovos_gui_plugin_shell_companion/__init__.py @@ -167,14 +167,6 @@ def handle_display_wallpaper_rotation_config_set(self, message: GUIMessage): self.local_display_config["wallpaper_rotation"] = wallpaper_rotation self.local_display_config.store() - LOG.info(message.data) - # TODO: Is rotation time defined here? - - if wallpaper_rotation: - msg_type = "ovos.wallpaper.manager.enable.auto.rotation" - else: - msg_type = "ovos.wallpaper.manager.disable.auto.rotation" - self.bus.emit(message.forward(msg_type)) # TODO Is the below message consumed anywhere? self.bus.emit(message.forward("speaker.extension.display.wallpaper.rotation.changed")) diff --git a/ovos_gui_plugin_shell_companion/res/ui/settings/display_settings.qml b/ovos_gui_plugin_shell_companion/res/ui/settings/display_settings.qml index 911b48b..e1c8859 100644 --- a/ovos_gui_plugin_shell_companion/res/ui/settings/display_settings.qml +++ b/ovos_gui_plugin_shell_companion/res/ui/settings/display_settings.qml @@ -161,6 +161,13 @@ Item { onClicked: { console.log(autoWallpaperRotationSwitch.checked) Mycroft.SoundEffects.playClickedSound(Qt.resolvedUrl("../snd/clicked.wav")) + if (autoWallpaperRotationSwitch.checked) { + Mycroft.MycroftController.sendRequest("ovos.wallpaper.manager.enable.auto.rotation") + } + else { + Mycroft.MycroftController.sendRequest("ovos.wallpaper.manager.disable.auto.rotation") + } + // TODO: deprecate this event? triggerGuiEvent("speaker.extension.display.set.wallpaper.rotation", {"wallpaper_rotation": autoWallpaperRotationSwitch.checked}) } }