]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Explain free space button usage in tooltip
authorFelix Ernst <felixernst@zohomail.eu>
Sat, 2 Dec 2023 15:18:42 +0000 (16:18 +0100)
committerFelix Ernst <felixernst@kde.org>
Fri, 12 Jan 2024 17:24:23 +0000 (17:24 +0000)
This is to make sure that users do not have to guess why they would
want to press the button.

src/statusbar/statusbarspaceinfo.cpp

index 5ef5144e52a38c949268215398c47b9e91e1161c..253d912c0dd24881ab2e500c514779591e4cf1ad 100644 (file)
@@ -184,7 +184,11 @@ void StatusBarSpaceInfo::slotValuesChanged()
 
     m_textInfoButton->setText(i18nc("@info:status Free disk space", "%1 free", KIO::convertSize(available)));
     setToolTip(i18nc("tooltip:status Free disk space", "%1 free out of %2 (%3% used)", KIO::convertSize(available), KIO::convertSize(size), percentUsed));
-    m_textInfoButton->setToolTip(toolTip());
+    m_textInfoButton->setToolTip(i18nc("@info:tooltip for the free disk space button",
+                                       "%1 free out of %2 (%3% used)\nPress to manage disk space usage.",
+                                       KIO::convertSize(available),
+                                       KIO::convertSize(size),
+                                       percentUsed));
     setUpdatesEnabled(false);
     m_capacityBar->setValue(percentUsed);
     setUpdatesEnabled(true);