tooltips: use builtin text prop, fix crash (#1956)

This commit is contained in:
end-4
2025-09-20 11:55:38 +02:00
parent 3a01dad945
commit 429cb50ff7
36 changed files with 116 additions and 103 deletions
@@ -21,7 +21,7 @@ QuickToggleButton {
GlobalStates.sidebarRightOpen = false
}
StyledToolTip {
content: Translation.tr("%1 | Right-click to configure").arg(
text: Translation.tr("%1 | Right-click to configure").arg(
(BluetoothStatus.firstActiveDevice?.name ?? Translation.tr("Bluetooth"))
+ (BluetoothStatus.activeDeviceCount > 1 ? ` +${BluetoothStatus.activeDeviceCount - 1}` : "")
)
@@ -87,6 +87,6 @@ QuickToggleButton {
}
}
StyledToolTip {
content: Translation.tr("Cloudflare WARP (1.1.1.1)")
text: Translation.tr("Cloudflare WARP (1.1.1.1)")
}
}
@@ -26,6 +26,6 @@ QuickToggleButton {
}
StyledToolTip {
content: Translation.tr("EasyEffects | Right-click to configure")
text: Translation.tr("EasyEffects | Right-click to configure")
}
}
@@ -26,6 +26,6 @@ QuickToggleButton {
}
}
StyledToolTip {
content: Translation.tr("Game mode")
text: Translation.tr("Game mode")
}
}
@@ -10,7 +10,7 @@ QuickToggleButton {
Idle.toggleInhibit()
}
StyledToolTip {
content: Translation.tr("Keep system awake")
text: Translation.tr("Keep system awake")
}
}
@@ -18,6 +18,6 @@ QuickToggleButton {
GlobalStates.sidebarRightOpen = false
}
StyledToolTip {
content: Translation.tr("%1 | Right-click to configure").arg(Network.networkName)
text: Translation.tr("%1 | Right-click to configure").arg(Network.networkName)
}
}
@@ -23,6 +23,6 @@ QuickToggleButton {
}
StyledToolTip {
content: Translation.tr("Night Light | Right-click to toggle Auto mode")
text: Translation.tr("Night Light | Right-click to toggle Auto mode")
}
}