Skip to content

Commit

Permalink
fix: sni item fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexays committed Sep 13, 2024
1 parent 1210bcd commit db1b4bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/sni/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ ToolTip get_variant<ToolTip>(const Glib::VariantBase& value) {
result.text = get_variant<Glib::ustring>(container.get_child(2));
auto description = get_variant<Glib::ustring>(container.get_child(3));
if (!description.empty()) {
result.text = fmt::format("<b>{}</b>\n{}", result.text, description);
result.text = fmt::format("<b>{}</b>\n{}", std::string(result.text), std::string(description));
}
return result;
}

void Item::setProperty(const Glib::ustring& name, Glib::VariantBase& value) {
try {
spdlog::trace("Set tray item property: {}.{} = {}", id.empty() ? bus_name : id, name, value);
spdlog::trace("Set tray item property: {}.{} = {}", id.empty() ? bus_name : id, std::string(name), get_variant<std::string>(value));

if (name == "Category") {
category = get_variant<std::string>(value);
Expand Down

0 comments on commit db1b4bd

Please sign in to comment.