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,13 +187,9 @@ auto waybar::modules::Custom::update() -> void {
fmt::arg("icon", getIcon(percentage_, alt_)), fmt::arg("percentage", percentage_)); fmt::arg("icon", getIcon(percentage_, alt_)), fmt::arg("percentage", percentage_));
label_.set_tooltip_markup(tooltip); label_.set_tooltip_markup(tooltip);
} else if (text_ == tooltip_) { } else if (text_ == tooltip_) {
if (label_.get_tooltip_markup() != str) { label_.set_tooltip_markup(str);
label_.set_tooltip_markup(str);
}
} else { } else {
if (label_.get_tooltip_markup() != tooltip_) { label_.set_tooltip_markup(tooltip_);
label_.set_tooltip_markup(tooltip_);
}
} }
} }
auto style = label_.get_style_context(); auto style = label_.get_style_context();