diff --git a/Assets/Translations/de.json b/Assets/Translations/de.json index c0175e18..f9224eef 100644 --- a/Assets/Translations/de.json +++ b/Assets/Translations/de.json @@ -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": { diff --git a/Assets/Translations/en.json b/Assets/Translations/en.json index e3a75c26..76b87f64 100644 --- a/Assets/Translations/en.json +++ b/Assets/Translations/en.json @@ -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": { diff --git a/Assets/Translations/es.json b/Assets/Translations/es.json index 6788c60a..7252dbf9 100644 --- a/Assets/Translations/es.json +++ b/Assets/Translations/es.json @@ -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": { diff --git a/Assets/Translations/fr.json b/Assets/Translations/fr.json index e15dd8c8..1e0b879d 100644 --- a/Assets/Translations/fr.json +++ b/Assets/Translations/fr.json @@ -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": { diff --git a/Assets/Translations/pt.json b/Assets/Translations/pt.json index 40a34a6b..7b3722cd 100644 --- a/Assets/Translations/pt.json +++ b/Assets/Translations/pt.json @@ -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": { diff --git a/Assets/Translations/zh-CN.json b/Assets/Translations/zh-CN.json index a2b8ecab..d107d181 100644 --- a/Assets/Translations/zh-CN.json +++ b/Assets/Translations/zh-CN.json @@ -1645,7 +1645,8 @@ "unavailable": "电源模式" }, "tooltip": { - "action": "点击切换电源模式" + "action": "点击切换电源模式", + "disabled": "安装 power-profiles-daemon 以使用电源模式" } }, "wifi": { diff --git a/Modules/ControlCenter/Widgets/PowerProfile.qml b/Modules/ControlCenter/Widgets/PowerProfile.qml index ca5f497f..d26922ed 100644 --- a/Modules/ControlCenter/Widgets/PowerProfile.qml +++ b/Modules/ControlCenter/Widgets/PowerProfile.qml @@ -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() }