summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-09-23 13:55:44 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-02 08:04:49 -0700
commitd635d5de1f024e620eb0ca75af83460620981954 (patch)
tree2f21877db87f99db5641fb4fa22d887ba88c840c
parent45106260dd11265413708cebe1d2ce31e2a64b58 (diff)
downloadsubsurface-d635d5de1f024e620eb0ca75af83460620981954.tar.gz
Mobile: only print debug output if there's information
On many devices the Screen property doesn't give us a manufacturer, model, or name. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--mobile-widgets/qml/main.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index 354a38fe8..0a60f4d03 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -678,7 +678,8 @@ if you have network connectivity and want to sync your data to cloud storage."),
Component.onCompleted: {
// try to see if we can detect certain device vendors through these properties
- console.log("Running on " + Screen.manufacturer + " " + Screen.model + " " + Screen.name)
+ if (Screen.manufacturer + " " + Screen.model + " " + Screen.name !== " ")
+ console.log("Running on " + Screen.manufacturer + " " + Screen.model + " " + Screen.name)
rootItem.visible = true
diveList.opacity = 1
rootItem.opacity = 1