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
1 changed files with 3 additions and 0 deletions

View File

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