launcher: use qsTr properly

This commit is contained in:
2 * r + 2 * t 2025-05-05 23:55:29 +10:00
parent dff2bde9a3
commit 0a8b88201b
2 changed files with 2 additions and 2 deletions

View file

@ -57,7 +57,7 @@ Item {
leftPadding: root.padding leftPadding: root.padding
rightPadding: root.padding rightPadding: root.padding
placeholderText: qsTr(`Type "${LauncherConfig.actionPrefix}" for commands`) placeholderText: qsTr("Type \"%1\" for commands").arg(LauncherConfig.actionPrefix)
background: StyledRect { background: StyledRect {
color: Colours.alpha(Colours.palette.m3surfaceContainer, true) color: Colours.alpha(Colours.palette.m3surfaceContainer, true)

View file

@ -13,7 +13,7 @@ Singleton {
readonly property var monitors: Hyprland.monitors readonly property var monitors: Hyprland.monitors
property Client activeClient: null property Client activeClient: null
readonly property HyprlandWorkspace activeWorkspace: focusedMonitor?.activeWorkspace ?? null readonly property HyprlandWorkspace activeWorkspace: focusedMonitor?.activeWorkspace ?? null
readonly property HyprlandMonitor focusedMonitor: Hyprland.monitors.values.find(m => m.lastIpcObject.focused) ?? null readonly property HyprlandMonitor focusedMonitor: Hyprland.focusedMonitor
readonly property int activeWsId: activeWorkspace?.id ?? 1 readonly property int activeWsId: activeWorkspace?.id ?? 1
function reload() { function reload() {