diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2020-06-18 17:12:35 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2020-06-23 13:23:20 +0300 |
commit | 2efbc968803b2f20866850e38980f7d559cb66fc (patch) | |
tree | 3a068e2b59cf864eb0f0b88f5668a2c0e785f470 /src/gui/folder.cpp | |
parent | bd9c5b9b556d1986a27719b079a4640afc6000bb (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 db5c83e5c..4294af815 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" @@ -476,6 +477,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); |