Revert "Fix tooltip sync issue by removing conditional checks"
This reverts commit 2b29c9a5d6.
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user