mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat: can disable tooltip
This commit is contained in:
@ -37,7 +37,9 @@ auto waybar::modules::sway::Mode::update() -> void
|
||||
event_box_.hide();
|
||||
} else {
|
||||
label_.set_markup(fmt::format(format_, mode_));
|
||||
label_.set_tooltip_text(mode_);
|
||||
if (tooltipEnabled()) {
|
||||
label_.set_tooltip_text(mode_);
|
||||
}
|
||||
event_box_.show();
|
||||
}
|
||||
}
|
@ -48,7 +48,9 @@ void waybar::modules::sway::Window::worker()
|
||||
auto waybar::modules::sway::Window::update() -> void
|
||||
{
|
||||
label_.set_markup(fmt::format(format_, window_));
|
||||
label_.set_tooltip_text(window_);
|
||||
if (tooltipEnabled()) {
|
||||
label_.set_tooltip_text(window_);
|
||||
}
|
||||
}
|
||||
|
||||
std::tuple<int, std::string> waybar::modules::sway::Window::getFocusedNode(
|
||||
|
Reference in New Issue
Block a user