PowerProfile: add tooltip when disabled to inform user what they need to install

This commit is contained in:
Ly-sec
2025-11-02 14:58:09 +01:00
parent b189b4b164
commit 98f074dddc
7 changed files with 13 additions and 7 deletions
@@ -14,7 +14,7 @@ NIconButtonHot {
enabled: hasPP
icon: PowerProfileService.getIcon()
hot: !PowerProfileService.isDefault()
tooltipText: I18n.tr("quickSettings.powerProfile.tooltip.action")
tooltipText: hasPP ? I18n.tr("quickSettings.powerProfile.tooltip.action") : I18n.tr("quickSettings.powerProfile.tooltip.disabled")
onClicked: {
PowerProfileService.cycleProfile()
}