Skip to content

Commit

Permalink
Merge pull request #6954 from nextcloud/enh/account-folder-list
Browse files Browse the repository at this point in the history
List sync folders in the file explorer with user's username.
  • Loading branch information
mgallien authored Aug 6, 2024
2 parents 790f54d + 11a50b1 commit ed0ce1a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gui/navigationpanehelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit ed0ce1a

Please sign in to comment.