QML UI: change auto cloud sync menu texts

This way the menu items describe what happens when you tap on that menu
item.  That seems more consistent and intuitive.

See #1204

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2018-04-16 08:08:20 -07:00
parent e10b252153
commit 6b9a1f3850

View file

@ -204,7 +204,7 @@ Kirigami.ApplicationWindow {
icon {
name: syncToCloud ? "icons/ic_cloud_off.svg" : "icons/ic_cloud_done.svg"
}
text: syncToCloud ? qsTr("Offline mode") : qsTr("Auto cloud sync enabled")
text: syncToCloud ? qsTr("Disable auto cloud sync") : qsTr("Enable auto cloud sync")
enabled: manager.credentialStatus !== QMLManager.CS_NOCLOUD
onTriggered: {
syncToCloud = !syncToCloud