Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2020-07-17 15:28:16 +0300
committerKevin Ottens <kevin.ottens@nextcloud.com>2020-12-15 12:59:19 +0300
commit020c6d642408526638041b1610faf0c05c26991f (patch)
tree55af5030a15d42cd51ef0803de98b2927f0d0701 /src/gui/folderman.cpp
parentd58cdaeb2a3d6061db040e42906adb9f3aec2e2c (diff)
Fix placeholders are reverted to OnlineOnly
Fixes: #7779
Diffstat (limited to 'src/gui/folderman.cpp')
-rw-r--r--src/gui/folderman.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/folderman.cpp b/src/gui/folderman.cpp
index 3ee51b955..b04ffa227 100644
--- a/src/gui/folderman.cpp
+++ b/src/gui/folderman.cpp
@@ -297,7 +297,9 @@ void FolderMan::setupFoldersHelper(QSettings &settings, AccountStatePtr account,
// Migrate the old "usePlaceholders" setting to the root folder pin state
if (settings.value(QLatin1String(versionC), 1).toInt() == 1
&& settings.value(QLatin1String("usePlaceholders"), false).toBool()) {
+ qCInfo(lcFolderMan) << "Migrate: From usePlaceholders to PinState::OnlineOnly";
f->setRootPinState(PinState::OnlineOnly);
+ settings.remove(QStringLiteral("usePlaceholders"));
}
// Migration: Mark folders that shall be saved in a backwards-compatible way