mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
fix(SessionMenu): use action metadata for localized countdown titles (fix #2043)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user