Merge pull request #4812 from Alexays/copilot/fix-tooltip-sync-issue

Fix custom module tooltip not updating on exec output change
This commit is contained in:
Alexis Rouillard
2026-02-04 10:12:20 +01:00
committed by GitHub

View File

@@ -187,15 +187,11 @@ auto waybar::modules::Custom::update() -> void {
fmt::arg("icon", getIcon(percentage_, alt_)), fmt::arg("percentage", percentage_));
label_.set_tooltip_markup(tooltip);
} else if (text_ == tooltip_) {
if (label_.get_tooltip_markup() != str) {
label_.set_tooltip_markup(str);
}
} else {
if (label_.get_tooltip_markup() != tooltip_) {
label_.set_tooltip_markup(tooltip_);
}
}
}
auto style = label_.get_style_context();
auto classes = style->list_classes();
for (auto const& c : classes) {