mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
7cc9da6347
commit
a3ddd823bb
3 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue