fix(tray): prefer tooltip title in menu (#3181)

This commit is contained in:
Vladimir authored and GitHub committed 2026-08-26 08:01:48 -04:00
1 parent ea0b158eb8
commit 5b8f083fe5
1 file changed
+3 -3
@@ -1890,10 +1890,10 @@ BasePill {
anchors.leftMargin: Theme.spacingS
anchors.verticalCenter: parent.verticalCenter
text: {
const itemId = menuRoot.trayItem?.id || "Unknown";
const itemTitle = menuRoot.trayItem?.tooltipTitle || menuRoot.trayItem?.id || I18n.tr("Unknown");
if (root.isAutoOverflowTrayItem(menuRoot.trayItem))
return itemId + " · " + I18n.tr("Keep in Bar");
return itemId;
return itemTitle + " · " + I18n.tr("Keep in Bar");
return itemTitle;
}
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceTextMedium