summaryrefslogtreecommitdiff
path: root/app/qml
diff options
context:
space:
mode:
Diffstat (limited to 'app/qml')
-rw-r--r--app/qml/pages/ManagerPage.qml10
1 files changed, 3 insertions, 7 deletions
diff --git a/app/qml/pages/ManagerPage.qml b/app/qml/pages/ManagerPage.qml
index c042adc..f24fae7 100644
--- a/app/qml/pages/ManagerPage.qml
+++ b/app/qml/pages/ManagerPage.qml
@@ -53,7 +53,7 @@ Page {
Label {
color: Theme.highlightColor
font.pixelSize: Theme.fontSizeSmall
- visible: !pebbled.connected
+ visible: pebbled.active && !pebbled.connected
text: qsTr("Waiting for watch...\nIf it can't be found plase check it's available and paired in Bluetooth settings.")
wrapMode: Text.Wrap
anchors {
@@ -89,18 +89,14 @@ Page {
description: pebbled.enabled ? qsTr("Automatic startup") : qsTr("Manual startup")
checked: pebbled.enabled
automaticCheck: false
- onClicked: {
- console.log('pebbled.(dis|en)able()');
- }
+ onClicked: pebbled.setEnabled(!checked)
}
TextSwitch {
text: qsTr("Active")
description: pebbled.active ? qsTr("Running") : qsTr("Dead")
checked: pebbled.active
automaticCheck: false
- onClicked: {
- console.log('pebbled.start|stop()');
- }
+ onClicked: pebbled.setActive(!checked)
}
TextSwitch {
text: qsTr("Connection")