1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

i18n: update terms

adjacently, fix the power menu confirm option
This commit is contained in:
bbedward
2025-10-14 14:06:46 -04:00
parent c2f32b7bdc
commit 309b8d9efe
5 changed files with 398 additions and 74 deletions

View File

@@ -255,7 +255,7 @@ Item {
powerConfirmModalLoader.active = true
if (powerConfirmModalLoader.item) {
powerConfirmModalLoader.item.confirmButtonColor = action === "poweroff" ? Theme.error : action === "reboot" ? Theme.warning : Theme.primary
powerConfirmModalLoader.item.show(title, message, actionApply(action), function () {})
powerConfirmModalLoader.item.show(title, message, () => actionApply(action), function () {})
}
} else {
actionApply(action)
@@ -430,12 +430,11 @@ Item {
id: powerMenuModal
onPowerActionRequested: (action, title, message) => {
console.log("CONFIRM: ", SettingsData.powerActionConfirm)
if (SettingsData.powerActionConfirm) {
powerConfirmModalLoader.active = true
if (powerConfirmModalLoader.item) {
powerConfirmModalLoader.item.confirmButtonColor = action === "poweroff" ? Theme.error : action === "reboot" ? Theme.warning : Theme.primary
powerConfirmModalLoader.item.show(title, message, actionApply(action), function () {})
powerConfirmModalLoader.item.show(title, message, () => actionApply(action), function () {})
}
} else {
actionApply(action)