mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-24 12:07:47 -04:00
fix(tray): prefer tooltip title in menu (#3181)
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user