forked from Shinonome/dots-hyprland
tooltips: use builtin text prop, fix crash (#1956)
This commit is contained in:
@@ -24,7 +24,7 @@ Revealer { // Scroll hint
|
||||
|
||||
// StyledToolTip {
|
||||
// extraVisibleCondition: tooltipText.length > 0
|
||||
// content: tooltipText
|
||||
// text: tooltipText
|
||||
// }
|
||||
|
||||
ColumnLayout {
|
||||
|
||||
@@ -31,10 +31,10 @@ MouseArea {
|
||||
event.accepted = true;
|
||||
}
|
||||
onEntered: {
|
||||
tooltip.content = item.tooltipTitle.length > 0 ? item.tooltipTitle
|
||||
tooltip.text = item.tooltipTitle.length > 0 ? item.tooltipTitle
|
||||
: (item.title.length > 0 ? item.title : item.id);
|
||||
if (item.tooltipDescription.length > 0) tooltip.content += " • " + item.tooltipDescription;
|
||||
if (Config.options.bar.tray.showItemId) tooltip.content += "\n[" + item.id + "]";
|
||||
if (item.tooltipDescription.length > 0) tooltip.text += " • " + item.tooltipDescription;
|
||||
if (Config.options.bar.tray.showItemId) tooltip.text += "\n[" + item.id + "]";
|
||||
}
|
||||
|
||||
Loader {
|
||||
|
||||
Reference in New Issue
Block a user