mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Setup Wizard: remove all folder definition before starting a new sync
Issue #1989
This commit is contained in:
parent
dc2f0d59cb
commit
441b5bd1dc
1 changed files with 1 additions and 1 deletions
|
@ -433,6 +433,7 @@ void OwncloudSetupWizard::slotAssistantFinished( int result )
|
|||
}
|
||||
// 2. Server URL or user changed, requires reinit of folders
|
||||
else if (reinitRequired) {
|
||||
folderMan->removeAllFolderDefinitions();
|
||||
// 2.1: startFromScratch: (Re)move local data, clean slate sync
|
||||
if (startFromScratch) {
|
||||
if (ensureStartFromScratch(localFolder)) {
|
||||
|
@ -444,7 +445,6 @@ void OwncloudSetupWizard::slotAssistantFinished( int result )
|
|||
}
|
||||
// 2.2: Reinit: Remove journal and start a sync
|
||||
else {
|
||||
folderMan->removeAllFolderDefinitions();
|
||||
folderMan->addFolderDefinition(Theme::instance()->appName(),
|
||||
localFolder, _remoteFolder, _ocWizard->blacklist() );
|
||||
_ocWizard->appendToConfigurationLog(tr("<font color=\"green\"><b>Local sync folder %1 successfully created!</b></font>").arg(localFolder));
|
||||
|
|
Loading…
Reference in a new issue