mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-04 03:06:57 +00:00
PowerProfile: add tooltip when disabled to inform user what they need to install
This commit is contained in:
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user