Fix system tray tooltip

pull/18/head
kateleet 4 years ago
parent 017515d5d5
commit 725cb53e9d

@ -255,11 +255,7 @@ void StatusNotifierItemSource::refreshCallback(QDBusPendingCallWatcher *call)
KDbusToolTipStruct toolTip; KDbusToolTipStruct toolTip;
properties[QStringLiteral("ToolTip")].value<QDBusArgument>() >> toolTip; properties[QStringLiteral("ToolTip")].value<QDBusArgument>() >> toolTip;
m_tooltip = toolTip.title; m_tooltip = toolTip.title;
m_subTitle = toolTip.subTitle;
// Use ID as an alternative :)
if (m_tooltip.isEmpty() && m_title.isEmpty()) {
m_tooltip = properties[QStringLiteral("Id")].toString();
}
// Icon // Icon
KDbusImageVector image; KDbusImageVector image;

@ -197,6 +197,6 @@ void SystemTrayModel::updated(StatusNotifierItemSource *item)
// update // update
if (idx != -1) { if (idx != -1) {
dataChanged(index(idx, 0), index(idx, 0)); emit dataChanged(index(idx, 0), index(idx, 0));
} }
} }

Loading…
Cancel
Save