Add the possibility to disable the tooltip

This commit is contained in:
Jonas 2019-02-22 16:58:36 +01:00
parent d708ce2be9
commit c2ed0cb832

View File

@ -27,7 +27,9 @@ auto waybar::modules::IdleInhibitor::update() -> void
label_.set_markup(
fmt::format(format_, fmt::arg("status", status_),
fmt::arg("icon", getIcon(0, status_))));
label_.set_tooltip_text(status_);
if(tooltipEnabled()) {
label_.set_tooltip_text(status_);
}
}
bool waybar::modules::IdleInhibitor::onClick(GdkEventButton* const& e)