Revert "Fix tooltip sync issue by removing conditional checks"

This reverts commit 2b29c9a5d6.
This commit is contained in:
Alison
2026-03-02 23:40:15 -08:00
parent fd086d0f33
commit a97e8dad7c

View File

@@ -188,9 +188,13 @@ auto waybar::modules::Custom::update() -> void {
fmt::arg("percentage", percentage_)); fmt::arg("percentage", percentage_));
label_.set_tooltip_markup(tooltip); label_.set_tooltip_markup(tooltip);
} else if (text_ == tooltip_) { } else if (text_ == tooltip_) {
label_.set_tooltip_markup(str); if (label_.get_tooltip_markup() != str) {
label_.set_tooltip_markup(str);
}
} else { } else {
label_.set_tooltip_markup(tooltip_); if (label_.get_tooltip_markup() != tooltip_) {
label_.set_tooltip_markup(tooltip_);
}
} }
} }
auto style = label_.get_style_context(); auto style = label_.get_style_context();