diff --git a/src/common/vfs.h b/src/common/vfs.h index c7e21b1a545..e1a8aec0eb2 100644 --- a/src/common/vfs.h +++ b/src/common/vfs.h @@ -62,6 +62,11 @@ struct OCSYNC_EXPORT VfsSetupParams QString providerName; QString providerVersion; + /** when registering with the system we might use + * a different presentaton to identify the accounts + */ + bool multipleAccountsRegistered = false; + /** Whether native shell integration shall be enabled * * For some plugins that doesn't work well in tests. diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp index db5c83e5c85..4294af8158a 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);