fix(SessionMenu): use action metadata for localized countdown titles (fix #2043)

This commit is contained in:
Lysec
2026-03-03 15:20:43 +01:00
parent 30af6ad39f
commit 500de16b3f
+2 -2
View File
@@ -589,7 +589,7 @@ SmartPanel {
id: timerText
anchors.centerIn: parent
text: I18n.tr("session-menu.action-in-seconds", {
"action": I18n.tr("common." + pendingAction),
"action": root.actionMetadata[pendingAction] ? root.actionMetadata[pendingAction].title : "",
"seconds": Math.ceil(timeRemaining / 1000)
})
font.weight: Style.fontWeightBold
@@ -656,7 +656,7 @@ SmartPanel {
NText {
text: timerActive ? I18n.tr("session-menu.action-in-seconds", {
"action": I18n.tr("common." + pendingAction),
"action": root.actionMetadata[pendingAction] ? root.actionMetadata[pendingAction].title : "",
"seconds": Math.ceil(timeRemaining / 1000)
}) : I18n.tr("session-menu.title")
font.weight: Style.fontWeightBold