From 8da20a7c3088aee2b04d45feeee8ca0753dc260e Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Fri, 17 Apr 2015 16:56:00 +0200 Subject: Test MPRIS volume control to see if the setting changes when we alter it. If it fails, use system volume instead, if enabled by config property. --- app/qml/pages/ManagerPage.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'app/qml') diff --git a/app/qml/pages/ManagerPage.qml b/app/qml/pages/ManagerPage.qml index 894797d..0c393a3 100644 --- a/app/qml/pages/ManagerPage.qml +++ b/app/qml/pages/ManagerPage.qml @@ -11,6 +11,7 @@ Page { path: "/org/pebbled/settings" property bool silentWhenConnected: false property bool transliterateMessage: false + property bool useSystemVolume: true property bool incomingCallNotification: true property bool notificationsCommhistoryd: true property bool notificationsMissedCall: true @@ -132,6 +133,15 @@ Page { settings.silentWhenConnected = !settings.silentWhenConnected; } } + TextSwitch { + text: qsTr("Alter system volume") + description: qsTr("Pebble music volume buttons change the system volume when the music player cannot") + checked: settings.useSystemVolume + automaticCheck: true + onClicked: { + settings.useSystemVolume = !settings.useSystemVolume; + } + } TextSwitch { text: qsTr("Transliterate messages") description: qsTr("Messages are transliterated to ASCII before sending to Pebble") -- cgit v1.2.3