From c9fbcec47df69bcbfa1094be1b7bfd7619b5f328 Mon Sep 17 00:00:00 2001 From: Jyrki Gadinger Date: Fri, 30 Aug 2024 10:15:13 +0200 Subject: [PATCH] gui: drop some tooltip prefixes - the "Nextcloud:" application prefix now only appears on Windows - all Folder connections won't have the "Folder:" prefix anymore Signed-off-by: Jyrki Gadinger --- src/gui/owncloudgui.cpp | 2 +- src/gui/systray.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/owncloudgui.cpp b/src/gui/owncloudgui.cpp index eea6132a68f51..2b71bf5c17767 100644 --- a/src/gui/owncloudgui.cpp +++ b/src/gui/owncloudgui.cpp @@ -431,7 +431,7 @@ void ownCloudGui::slotComputeOverallSyncStatus() folder->syncResult().hasUnresolvedConflicts(), folder->syncPaused(), folder->syncEngine().progressInfo()); - allStatusStrings += tr("Folder %1: %2").arg(folder->shortGuiLocalPath(), folderMessage); + allStatusStrings += tr("%1: %2").arg(folder->shortGuiLocalPath(), folderMessage); } #ifdef BUILD_FILE_PROVIDER_MODULE for (const auto &accountId : syncingFileProviderAccounts) { diff --git a/src/gui/systray.cpp b/src/gui/systray.cpp index c4d4672fe621b..642052d2b4103 100644 --- a/src/gui/systray.cpp +++ b/src/gui/systray.cpp @@ -568,7 +568,11 @@ void Systray::showTalkMessage(const QString &title, const QString &message, cons void Systray::setToolTip(const QString &tip) { +#ifdef Q_OS_WIN QSystemTrayIcon::setToolTip(tr("%1: %2").arg(Theme::instance()->appNameGUI(), tip)); +#else + QSystemTrayIcon::setToolTip(tip); +#endif } bool Systray::syncIsPaused() const