diff options
author | jan Iversen <jan@casacondor.com> | 2019-12-13 10:32:14 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-18 13:26:29 +0900 |
commit | 161bedf58d483d775faceefdf02f645eda077482 (patch) | |
tree | 07ca21540e0027d3427bb3f55d83dbbc2857d806 | |
parent | 1dd7d9df3aab0deaabfcb14299efcf32cb29bdc8 (diff) | |
download | subsurface-161bedf58d483d775faceefdf02f645eda077482.tar.gz |
mobile-widget: use qPref variable
change prefs.cloudUserName to PrefCloudStage.cloud_storage_email.
This is slightly more effective (direct instead of indirect), and
reduces the use of prefs.
This is part of limiting the use of prefs. (which is a precessor to
qPref) to the login process, and ultimately remove it.
Signed-off-by: Jan Iversen <jani@apache.org>
-rw-r--r-- | mobile-widgets/qml/Settings.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qml/Settings.qml b/mobile-widgets/qml/Settings.qml index ec4cec40f..77403c586 100644 --- a/mobile-widgets/qml/Settings.qml +++ b/mobile-widgets/qml/Settings.qml @@ -45,7 +45,7 @@ Kirigami.ScrollablePage { color: subsurfaceTheme.textColor } Controls.Label { - text: prefs.credentialStatus === CloudStatus.CS_NOCLOUD ? qsTr("Not applicable") : prefs.cloudUserName + text: PrefCloudStorage.credentialStatus === CloudStatus.CS_NOCLOUD ? qsTr("Not applicable") : PrefCloudStorage.cloud_storage_email font.pointSize: subsurfaceTheme.regularPointSize Layout.preferredWidth: gridWidth * 0.60 color: subsurfaceTheme.textColor |