From 161bedf58d483d775faceefdf02f645eda077482 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Fri, 13 Dec 2019 10:32:14 +0100 Subject: 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 --- mobile-widgets/qml/Settings.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mobile-widgets/qml/Settings.qml') 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 -- cgit v1.2.3-70-g09d2