diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-08-06 18:38:52 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-08-11 11:14:22 -0700 |
commit | 842210c80d1618a78928fb2bf93cc4a4c77a3ccf (patch) | |
tree | e6024ea7fc9e33978d7e32b13e0dd51f0efbca32 /mobile-widgets/qml | |
parent | 76e81e5d5387bda41717c23f4a54f6d6370599c2 (diff) | |
download | subsurface-842210c80d1618a78928fb2bf93cc4a4c77a3ccf.tar.gz |
QML UI: show download page when device was plugged in
Unless, of course, the user was editing or adding a dive - that would
be annoying to have interrupted (even though, of course, it's the user
plugging in the device which would trigger this in the first place).
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r-- | mobile-widgets/qml/main.qml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index f74b28b71..069024cc8 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -612,7 +612,13 @@ if you have network connectivity and want to sync your data to cloud storage."), } onPluggedInDeviceNameChanged: { - console.log("Show download page for device " + pluggedInDeviceName); + if (detailsWindow.state === 'edit' || detailsWindow.state === 'add') { + /* we're in the middle of editing / adding a dive */ + console.log("Download page requested by Android Intent, but adding/editing dive; no action taken") + } else { + console.log("Show download page for device " + pluggedInDeviceName) + diveList.showDownloadPage() + } } Component.onCompleted: { |