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-06-18 17:12:35 +0300
committerKevin Ottens <kevin.ottens@nextcloud.com>2020-12-15 12:59:14 +0300
commitf932dfc64801f255ada8715b6911cc7dff6ce004 (patch)
tree8ce207f2adb02dc27a567a3b3b97846197b71417 /src/gui/folder.cpp
parenta0d81df21e2e9c3712856ddd6b1f2401403bb615 (diff)
VFS: Tell the vfs plugin whether we have multiple accounts
This allows us to decide on the presentation of the account
Diffstat (limited to 'src/gui/folder.cpp')
-rw-r--r--src/gui/folder.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp
index e513bce40..187377eab 100644
--- a/src/gui/folder.cpp
+++ b/src/gui/folder.cpp
@@ -16,6 +16,7 @@
#include "config.h"
#include "account.h"
+#include "accountmanager.h"
#include "accountstate.h"
#include "folder.h"
#include "folderman.h"
@@ -489,6 +490,7 @@ void Folder::startVfs()
vfsParams.journal = &_journal;
vfsParams.providerName = Theme::instance()->appNameGUI();
vfsParams.providerVersion = Theme::instance()->version();
+ vfsParams.multipleAccountsRegistered = AccountManager::instance()->accounts().size() > 1;
connect(_vfs.data(), &Vfs::beginHydrating, this, &Folder::slotHydrationStarts);
connect(_vfs.data(), &Vfs::doneHydrating, this, &Folder::slotHydrationDone);