QML UI: rename menu entry for offline use

That really is what it boils down to.

Also removes a few stray spaces in the warning text.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-04-21 04:43:37 -07:00
parent 4e62bfa9a9
commit 6af77b08b2

View file

@ -150,16 +150,16 @@ Kirigami.ApplicationWindow {
} }
} }
Kirigami.Action { Kirigami.Action {
text: syncToCloud ? "Disable auto cloud sync" : "Enable auto cloud sync" text: syncToCloud ? "Offline mode" : "Enable auto cloud sync"
onTriggered: { onTriggered: {
syncToCloud = !syncToCloud syncToCloud = !syncToCloud
if (!syncToCloud) { if (!syncToCloud) {
var alertText = "Turning off automatic sync to cloud causes all data\n" var alertText = "Turning off automatic sync to cloud causes all data\n"
alertText +=" to only be stored locally.\n" alertText +="to only be stored locally.\n"
alertText += "This can be very useful in situations with\n" alertText += "This can be very useful in situations with\n"
alertText += " limited or no network access.\n" alertText += "limited or no network access.\n"
alertText += "Please chose 'Manual sync with cloud' if you have network\n" alertText += "Please chose 'Manual sync with cloud' if you have network\n"
alertText += " connectivity and want to sync your data to cloud storage." alertText += "connectivity and want to sync your data to cloud storage."
showPassiveNotification(alertText, 10000) showPassiveNotification(alertText, 10000)
} }
} }