mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 21:15:55 +03:00
Adapted for cmd version and added migration step for config file
Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
This commit is contained in:
parent
fc6b895f52
commit
67ed54671b
2 changed files with 6 additions and 1 deletions
|
@ -499,7 +499,7 @@ restart_sync:
|
|||
}
|
||||
|
||||
Cmd cmd;
|
||||
QString dbPath = options.source_dir + SyncJournalDb::makeDbName(options.source_dir, credentialFreeUrl, folder, user);
|
||||
QString dbPath = options.source_dir + SyncJournalDb::makeDbName(credentialFreeUrl, folder, user);
|
||||
SyncJournalDb db(dbPath);
|
||||
|
||||
if (!selectiveSyncList.empty()) {
|
||||
|
|
|
@ -210,6 +210,11 @@ void FolderMan::setupFoldersHelper(QSettings &settings, AccountStatePtr account,
|
|||
folderDefinition.journalPath = defaultJournalPath;
|
||||
}
|
||||
|
||||
// Migration #2: journalPath now in DataAppDir, not root of local tree (cross-platform persistent user roaming files)
|
||||
if (folderDefinition.journalPath.at(0) == QChar('.')) {
|
||||
folderDefinition.journalPath = defaultJournalPath;
|
||||
}
|
||||
|
||||
// Migration: ._ files sometimes don't work
|
||||
// So if the configured journalPath is the default one ("._sync_*.db")
|
||||
// but the current default doesn't have the underscore, switch to the
|
||||
|
|
Loading…
Reference in a new issue