feat(tray): fallback to Title for items without ToolTip

This commit is contained in:
Aleksei Bavshin 2021-06-30 22:17:27 -07:00
parent 84a8f79bbe
commit 1418f96e46
No known key found for this signature in database
GPG Key ID: 4F071603387A382A

View File

@ -119,6 +119,9 @@ void Item::setProperty(const Glib::ustring& name, Glib::VariantBase& value) {
id = get_variant<std::string>(value);
} else if (name == "Title") {
title = get_variant<std::string>(value);
if (tooltip.text.empty()) {
event_box.set_tooltip_markup(title);
}
} else if (name == "Status") {
status = get_variant<std::string>(value);
} else if (name == "IconName") {