List sync folders in the file explorer with user's username.
authorCamila Ayres <hello@camilasan.com>
Tue, 30 Jul 2024 10:12:48 +0000 (12:12 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Tue, 6 Aug 2024 16:35:37 +0000 (18:35 +0200)
Signed-off-by: Camila Ayres <hello@camilasan.com>
src/gui/navigationpanehelper.cpp

index ce2bad09c2bb59d194cec51f6c0ae7c53aa75301..3b2221f3c68d13e70d4da05bb3e1c070d3dfae46 100644 (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());