mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 08:43:24 +00:00
mobile: show message when going offline
Trivial fix. Show the message "Turning off automatic sync to cloud ..." when turning automatic sync to offline. Just a more logical moment to show this message. Also rephrase the message "Enable auto sync" to "Auto sync enabled". It shows a status, and not an action. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
c21e998277
commit
62ef78b5e8
1 changed files with 2 additions and 2 deletions
|
@ -182,11 +182,11 @@ Kirigami.ApplicationWindow {
|
||||||
}
|
}
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
iconName: syncToCloud ? "icons/ic_cloud_off.svg" : "icons/ic_cloud_done.svg"
|
iconName: syncToCloud ? "icons/ic_cloud_off.svg" : "icons/ic_cloud_done.svg"
|
||||||
text: syncToCloud ? qsTr("Offline mode") : qsTr("Enable auto cloud sync")
|
text: syncToCloud ? qsTr("Offline mode") : qsTr("Auto cloud sync enabled")
|
||||||
enabled: manager.credentialStatus !== QMLManager.CS_NOCLOUD
|
enabled: manager.credentialStatus !== QMLManager.CS_NOCLOUD
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
syncToCloud = !syncToCloud
|
syncToCloud = !syncToCloud
|
||||||
if (!syncToCloud) {
|
if (syncToCloud) {
|
||||||
showPassiveNotification(qsTr("Turning off automatic sync to cloud causes all data to only be \
|
showPassiveNotification(qsTr("Turning off automatic sync to cloud causes all data to only be \
|
||||||
stored locally. This can be very useful in situations with limited or no network access. Please choose 'Manual sync with cloud' \
|
stored locally. This can be very useful in situations with limited or no network access. Please choose 'Manual sync with cloud' \
|
||||||
if you have network connectivity and want to sync your data to cloud storage."), 10000)
|
if you have network connectivity and want to sync your data to cloud storage."), 10000)
|
||||||
|
|
Loading…
Add table
Reference in a new issue