1
0
mirror of https://invent.kde.org/system/dolphin synced 2024-07-04 17:30:55 +00:00

Explain free space button usage in tooltip

This is to make sure that users do not have to guess why they would
want to press the button.
This commit is contained in:
Felix Ernst 2023-12-02 16:18:42 +01:00 committed by Felix Ernst
parent d4d6f88344
commit 83988f5e5b

View 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);