feat: can disable tooltip

This commit is contained in:
Alex
2019-02-22 11:35:26 +01:00
parent 331b28393a
commit 83a6475510
9 changed files with 34 additions and 12 deletions

View File

@ -215,7 +215,9 @@ auto waybar::modules::Pulseaudio::update() -> void
label_.set_markup(
fmt::format(format, fmt::arg("volume", volume_),
fmt::arg("icon", getIcon(volume_, getPortIcon()))));
label_.set_tooltip_text(desc_);
if (tooltipEnabled()) {
label_.set_tooltip_text(desc_);
}
if (scrolling_) {
scrolling_ = false;
}