From d635d5de1f024e620eb0ca75af83460620981954 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 23 Sep 2019 13:55:44 -0700 Subject: 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 --- mobile-widgets/qml/main.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mobile-widgets') 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 -- cgit v1.2.3-70-g09d2