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
+2 -1
View File
@@ -1685,7 +1685,8 @@
"unavailable": "Energieprofil"
},
"tooltip": {
"action": "Klicken zum Wechseln des Energieprofils"
"action": "Klicken zum Wechseln des Energieprofils",
"disabled": "Installiere power-profiles-daemon, um Energieprofile zu verwenden"
}
},
"wifi": {
+2 -1
View File
@@ -1645,7 +1645,8 @@
"unavailable": "Power Profile"
},
"tooltip": {
"action": "Click to cycle power profile"
"action": "Click to cycle power profile",
"disabled": "Install power-profiles-daemon to use power profiles"
}
},
"wifi": {
+2 -1
View File
@@ -1645,7 +1645,8 @@
"unavailable": "Perfil de energía"
},
"tooltip": {
"action": "Hacer clic para cambiar el perfil de energía"
"action": "Hacer clic para cambiar el perfil de energía",
"disabled": "Instala power-profiles-daemon para usar perfiles de energía"
}
},
"wifi": {
+2 -1
View File
@@ -1645,7 +1645,8 @@
"unavailable": "Profil d'alimentation"
},
"tooltip": {
"action": "Cliquer pour changer de profil d'alimentation"
"action": "Cliquer pour changer de profil d'alimentation",
"disabled": "Installez power-profiles-daemon pour utiliser les profils d'alimentation"
}
},
"wifi": {
+2 -1
View File
@@ -1645,7 +1645,8 @@
"unavailable": "Perfil de energia"
},
"tooltip": {
"action": "Clique para alternar o perfil de energia"
"action": "Clique para alternar o perfil de energia",
"disabled": "Instale power-profiles-daemon para usar perfis de energia"
}
},
"wifi": {
+2 -1
View File
@@ -1645,7 +1645,8 @@
"unavailable": "电源模式"
},
"tooltip": {
"action": "点击切换电源模式"
"action": "点击切换电源模式",
"disabled": "安装 power-profiles-daemon 以使用电源模式"
}
},
"wifi": {
@@ -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()
}