diff options
author | jan Iversen <jan@casacondor.com> | 2019-12-29 09:49:03 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-29 12:20:19 -0800 |
commit | a729d1a576b283483177f884175c938d6d1345f7 (patch) | |
tree | 48fdd047bc6d195d3a4eac259c49899908816399 /mobile-widgets | |
parent | b92c2d280cddff8a5f0fa53bafa8d57cb52f4603 (diff) | |
download | subsurface-a729d1a576b283483177f884175c938d6d1345f7.tar.gz |
mobile-widgets: remove showPin from qmlmanager
Setting showPin is no longer needed, so remove it.
Signed-off-by: Jan Iversen <jan@casacondor.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 7a54f4ced..b935a5bd8 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -237,7 +237,7 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false), m_btEnabled = btDiscovery->btAvailable(); connect(&btDiscovery->localBtDevice, &QBluetoothLocalDevice::hostModeStateChanged, this, &QMLManager::btHostModeChange); - QMLPrefs::instance()->setShowPin(false); + // create location manager service locationProvider = new GpsLocation(&appendTextToLogStandalone, this); progress_callback = &progressCallback; @@ -341,7 +341,6 @@ void QMLManager::openLocalThenRemote(QString url) } if (qPrefCloudStorage::cloud_verification_status() == qPrefCloudStorage::CS_NEED_TO_VERIFY) { appendTextToLog(QStringLiteral("have cloud credentials, but still needs PIN")); - QMLPrefs::instance()->setShowPin(true); } if (qPrefCloudStorage::cloud_verification_status() == qPrefCloudStorage::CS_INCORRECT_USER_PASSWD) { appendTextToLog(QStringLiteral("incorrect password for cloud credentials")); @@ -604,7 +603,6 @@ bool QMLManager::verifyCredentials(QString email, QString password, QString pin) appendTextToLog(QStringLiteral("PIN provided but not accepted")); setStartPageText(RED_FONT + tr("Incorrect PIN, please try again") + END_FONT); } - QMLPrefs::instance()->setShowPin(true); return false; } else if (prefs.cloud_verification_status == qPrefCloudStorage::CS_VERIFIED) { appendTextToLog(QStringLiteral("PIN accepted")); @@ -649,11 +647,8 @@ void QMLManager::tryRetrieveDataFromBackend() appendTextToLog(QStringLiteral("Need to verify the email address - enter PIN")); setStartPageText(RED_FONT + tr("Cannot connect to cloud storage - cloud account not verified") + END_FONT); revertToNoCloudIfNeeded(); - QMLPrefs::instance()->setShowPin(true); return; } - if (QMLPrefs::instance()->showPin()) - QMLPrefs::instance()->setShowPin(false); // now check the redirect URL to make sure everything is set up on the cloud server connect(manager(), &QNetworkAccessManager::authenticationRequired, this, &QMLManager::provideAuth, Qt::UniqueConnection); |