summaryrefslogtreecommitdiff
path: root/app/qml
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2015-04-17 16:56:00 +0200
committerAndrew Branson <andrew.branson@cern.ch>2015-04-17 19:11:42 +0200
commit8da20a7c3088aee2b04d45feeee8ca0753dc260e (patch)
tree70dc3a2d091ca82f77a9a20e3ce7f1cddd825526 /app/qml
parentd9f2e79eff8744bd5bd422133117693d42ee52da (diff)
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.
Diffstat (limited to 'app/qml')
-rw-r--r--app/qml/pages/ManagerPage.qml10
1 files changed, 10 insertions, 0 deletions
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
@@ -133,6 +134,15 @@ Page {
}
}
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")
checked: settings.transliterateMessage