mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -1413,6 +1413,7 @@ QMLManager::cloud_status_qml QMLManager::credentialStatus() const
|
|||
void QMLManager::setCredentialStatus(const cloud_status_qml value)
|
||||
{
|
||||
if (m_credentialStatus != value) {
|
||||
setOldStatus(m_credentialStatus);
|
||||
if (value == CS_NOCLOUD) {
|
||||
appendTextToLog("Switching to no cloud mode");
|
||||
set_filename(NOCLOUD_LOCALSTORAGE, true);
|
||||
|
|
Loading…
Add table
Reference in a new issue