mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	mobile: only deal with localrepo in NOCLOUD mode
This is a very subtile bug. Testing/developing on the desktop for mobile, with a normal logbook in a git repo, resulted in a surprising effect. When swichting from a cloud account to a NOCLOUD situation, the no cloud repo was (not always) reset to the NOCLOUD_LOCALSTORAGE, but to the normal logbook. Resuling in commits in the wrong repo. This can easily be solved by setting the filename to NOCLOUD_LOCALSTORAGE, when switching to NOCLOUD mode. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
		
							parent
							
								
									6ea3fd3d92
								
							
						
					
					
						commit
						85dfdaa3e5
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -1413,8 +1413,10 @@ 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) { | ||||||
| 		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); | ||||||
|  | 		} | ||||||
| 		m_credentialStatus = value; | 		m_credentialStatus = value; | ||||||
| 		emit credentialStatusChanged(); | 		emit credentialStatusChanged(); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue