Commit cea15379 authored by Willyanto Willyanto's avatar Willyanto Willyanto Committed by Nate Graham
Browse files

Add unmute message in both KCM and applet tooltip

Currently, both KCM and applet tooltip show mute device or stream even if it
is muted. Add unmute device or stream message in the tooltip if it is muted.
parent 82cfbb5c
Pipeline #165608 passed with stage
in 1 minute and 15 seconds
......@@ -194,7 +194,7 @@ PC3.ItemDelegate {
checked: item.model.Muted
PC3.ToolTip.visible: hovered
PC3.ToolTip.text: i18n("Mute %1", defaultButton.text)
PC3.ToolTip.text: item.model.Muted ? i18n("Unmute %1", defaultButton.text) : i18n("Mute %1", defaultButton.text)
PC3.ToolTip.delay: 700
}
......
......@@ -19,6 +19,6 @@ QQC2.ToolButton {
onMutedChanged: checked = muted
QQC2.ToolTip {
text: i18ndc("kcm_pulseaudio", "Mute audio stream", "Mute %1", toolTipText)
text: muted ? i18ndc("kcm_pulseaudio", "Unmute audio stream", "Unmute %1", toolTipText) : i18ndc("kcm_pulseaudio", "Mute audio stream", "Mute %1", toolTipText)
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment