Merge pull request #6954 from nextcloud/enh/account-folder-list

List sync folders in the file explorer with user's username.
This commit is contained in:
Matthieu Gallien 2024-08-06 19:34:52 +02:00 committed by GitHub
commit ed0ce1a69f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -97,8 +97,9 @@ void NavigationPaneHelper::updateCloudStorageRegistry()
QString title = folder->shortGuiRemotePathOrAppName();
// Write the account name in the sidebar only when using more than one account.
if (AccountManager::instance()->accounts().size() > 1)
title = title % " - " % folder->accountState()->account()->displayName();
if (AccountManager::instance()->accounts().size() > 1) {
title = title % " - " % folder->accountState()->account()->prettyName();
}
QString iconPath = QDir::toNativeSeparators(qApp->applicationFilePath());
QString targetFolderPath = QDir::toNativeSeparators(folder->cleanPath());