summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-06 06:24:51 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-11 11:14:22 -0700
commita3ddd823bbba8f72495c01e62e91639cc6b88694 (patch)
treef1b657f2ef5c7b1724f1164747b080d539594acb /mobile-widgets/qml
parent7cc9da63474f341ad990da3ecb9c36edcef5a71c (diff)
downloadsubsurface-a3ddd823bbba8f72495c01e62e91639cc6b88694.tar.gz
QML UI: add property to pass detected device name to UI
If the user plugs in a device on Android we get a device string that should allow us to figure out which dive computer was plugged in. Make that string available to the QML UI. Right now all we do is log it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/main.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index 03d7238c3..f74b28b71 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -25,6 +25,7 @@ Kirigami.ApplicationWindow {
property alias notificationText: manager.notificationText
property alias syncToCloud: manager.syncToCloud
property alias locationServiceEnabled: manager.locationServiceEnabled
+ property alias pluggedInDeviceName: manager.pluggedInDeviceName
property alias showPin: prefs.showPin
onNotificationTextChanged: {
if (notificationText != "") {
@@ -610,6 +611,10 @@ if you have network connectivity and want to sync your data to cloud storage."),
visible: false
}
+ onPluggedInDeviceNameChanged: {
+ console.log("Show download page for device " + pluggedInDeviceName);
+ }
+
Component.onCompleted: {
rootItem.visible = true
diveList.opacity = 1