refactor(custom): tooltip markup

This commit is contained in:
Alex
2020-05-30 11:59:22 +02:00
parent 6e7f22ac3a
commit e96a0bf799
2 changed files with 3 additions and 3 deletions

View File

@ -129,9 +129,9 @@ auto waybar::modules::Custom::update() -> void {
label_.set_markup(str);
if (tooltipEnabled()) {
if (text_ == tooltip_) {
label_.set_tooltip_text(str);
label_.set_tooltip_markup(str);
} else {
label_.set_tooltip_text(tooltip_);
label_.set_tooltip_markup(tooltip_);
}
}
auto classes = label_.get_style_context()->list_classes();