summaryrefslogtreecommitdiffstats
path: root/qt-ui/preferences.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-14 14:06:44 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-14 14:06:44 -0700
commit4b120d1bf54f339eaea488c71faecb5395defaf3 (patch)
tree433f2e86a8fd782ec741b793c6e89f5cab31ec88 /qt-ui/preferences.cpp
parentb5eb66545b4c28809610d0778b9a797da9dda002 (diff)
downloadsubsurface-4b120d1bf54f339eaea488c71faecb5395defaf3.tar.gz
Cloud storage: show in preferences if cloud account was verified
This should make it easier to figure out what's happening. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/preferences.cpp')
-rw-r--r--qt-ui/preferences.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/preferences.cpp b/qt-ui/preferences.cpp
index 1bc776e01..7ed807f3b 100644
--- a/qt-ui/preferences.cpp
+++ b/qt-ui/preferences.cpp
@@ -109,6 +109,10 @@ void PreferencesDialog::cloudPinNeeded()
ui.cloud_storage_pin->setVisible(prefs.cloud_verification_status == CS_NEED_TO_VERIFY);
ui.cloud_storage_pin_label->setEnabled(prefs.cloud_verification_status == CS_NEED_TO_VERIFY);
ui.cloud_storage_pin_label->setVisible(prefs.cloud_verification_status == CS_NEED_TO_VERIFY);
+ if (prefs.cloud_verification_status == CS_VERIFIED)
+ ui.cloudStorageGroupBox->setTitle(tr("Subsurface cloud storage (credentials verified)"));
+ else
+ ui.cloudStorageGroupBox->setTitle(tr("Subsurface cloud storage"));
}
#define DANGER_GF (gf > 100) ? "* { color: red; }" : ""