From 095309cb67688e2f6520f817fe4f5e40b175a729 Mon Sep 17 00:00:00 2001 From: Camila Ayres Date: Tue, 17 Dec 2024 14:44:28 +0100 Subject: [PATCH 1/2] Use Qt::ElideRight. Signed-off-by: Camila Ayres --- src/gui/folderstatusdelegate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/folderstatusdelegate.cpp b/src/gui/folderstatusdelegate.cpp index d5f5d6e9e1c6c..45350b469fabb 100644 --- a/src/gui/folderstatusdelegate.cpp +++ b/src/gui/folderstatusdelegate.cpp @@ -273,7 +273,7 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem & subFm.height()); for (const auto &eText : texts) { - painter->drawText(QStyle::visualRect(option.direction, option.rect, textRect), textAlign, subFm.elidedText(eText, Qt::ElideLeft, textRect.width())); + painter->drawText(QStyle::visualRect(option.direction, option.rect, textRect), textAlign, subFm.elidedText(eText, Qt::ElideRight, textRect.width())); textRect.translate(0, textRect.height()); } // restore previous state From cf0fe1bad6a704ddcb20b2348fd2e9bd8886ceef Mon Sep 17 00:00:00 2001 From: Camila Ayres Date: Tue, 17 Dec 2024 14:51:35 +0100 Subject: [PATCH 2/2] Remove extra \n. Signed-off-by: Camila Ayres --- src/gui/folderman.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/folderman.cpp b/src/gui/folderman.cpp index d3f6cd3637d70..bb31825b78b47 100644 --- a/src/gui/folderman.cpp +++ b/src/gui/folderman.cpp @@ -2046,7 +2046,7 @@ Result FolderMan::unsupportedConfiguration(const QString &path) c if (numberOfSyncJournals(path) > 1) { return tr("The folder %1 is linked to multiple accounts.\n" "This setup can cause data loss and it is no longer supported.\n" - "To resolve this issue: please remove %1 from one of the accounts and create a new sync folder.\n\n" + "To resolve this issue: please remove %1 from one of the accounts and create a new sync folder.\n" "For advanced users: this issue might be related to multiple sync database files found in one folder. Please check %1 for outdated and unused .sync_*.db files and remove them.") .arg(path); }