mobile: make sure that the old credential status is correct
This commit is just a precaution. It makes sure that the old (aka previous) credential status is correctly set on all changes of this status. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
85dfdaa3e5
commit
0af64e4986
@ -1413,6 +1413,7 @@ QMLManager::cloud_status_qml QMLManager::credentialStatus() const
|
|||||||
void QMLManager::setCredentialStatus(const cloud_status_qml value)
|
void QMLManager::setCredentialStatus(const cloud_status_qml value)
|
||||||
{
|
{
|
||||||
if (m_credentialStatus != value) {
|
if (m_credentialStatus != value) {
|
||||||
|
setOldStatus(m_credentialStatus);
|
||||||
if (value == CS_NOCLOUD) {
|
if (value == CS_NOCLOUD) {
|
||||||
appendTextToLog("Switching to no cloud mode");
|
appendTextToLog("Switching to no cloud mode");
|
||||||
set_filename(NOCLOUD_LOCALSTORAGE, true);
|
set_filename(NOCLOUD_LOCALSTORAGE, true);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user