diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2020-06-18 17:12:35 +0300 |
---|---|---|
committer | Kevin Ottens <kevin.ottens@nextcloud.com> | 2020-12-15 12:59:14 +0300 |
commit | f932dfc64801f255ada8715b6911cc7dff6ce004 (patch) | |
tree | 8ce207f2adb02dc27a567a3b3b97846197b71417 /src/gui/folder.cpp | |
parent | a0d81df21e2e9c3712856ddd6b1f2401403bb615 (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.cpp | 2 |
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); |