Skip to content

Commit

Permalink
Issue Alexays#3375: use tooltipMarkupEnabled() in mpris
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertMueller2 committed Jul 20, 2024
1 parent 1c1c82c commit eb9268c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/modules/mpris/mpris.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,12 @@ auto Mpris::update() -> void {
fmt::arg("player_icon", getIconFromJson(config_["player-icons"], info.name)),
fmt::arg("status_icon", getIconFromJson(config_["status-icons"], info.status_string)));

label_.set_tooltip_text(tooltip_text);
if (tooltipMarkupEnabled()) {
label_.set_tooltip_markup(tooltip_text);
}
else {
label_.set_tooltip_text(tooltip_text);
}
} catch (fmt::format_error const& e) {
spdlog::warn("mpris: format error (tooltip): {}", e.what());
}
Expand Down

0 comments on commit eb9268c

Please sign in to comment.