Fix tooltips broken by 2b29c9a
Some checks failed
clang-format / lint (push) Has been cancelled
freebsd / build (push) Has been cancelled
linux / build (c++20, alpine) (push) Has been cancelled
linux / build (c++20, archlinux) (push) Has been cancelled
linux / build (c++20, debian) (push) Has been cancelled
linux / build (c++20, fedora) (push) Has been cancelled
linux / build (c++20, gentoo) (push) Has been cancelled
linux / build (c++20, opensuse) (push) Has been cancelled
Nix-Tests / nix-flake-check (push) Has been cancelled
update-flake-lock / lockfile (push) Has been cancelled
Build and Push Docker Image / build-and-push (alpine) (push) Has been cancelled
Build and Push Docker Image / build-and-push (archlinux) (push) Has been cancelled
Build and Push Docker Image / build-and-push (debian) (push) Has been cancelled
Build and Push Docker Image / build-and-push (fedora) (push) Has been cancelled
Build and Push Docker Image / build-and-push (gentoo) (push) Has been cancelled
Build and Push Docker Image / build-and-push (opensuse) (push) Has been cancelled
Some checks failed
clang-format / lint (push) Has been cancelled
freebsd / build (push) Has been cancelled
linux / build (c++20, alpine) (push) Has been cancelled
linux / build (c++20, archlinux) (push) Has been cancelled
linux / build (c++20, debian) (push) Has been cancelled
linux / build (c++20, fedora) (push) Has been cancelled
linux / build (c++20, gentoo) (push) Has been cancelled
linux / build (c++20, opensuse) (push) Has been cancelled
Nix-Tests / nix-flake-check (push) Has been cancelled
update-flake-lock / lockfile (push) Has been cancelled
Build and Push Docker Image / build-and-push (alpine) (push) Has been cancelled
Build and Push Docker Image / build-and-push (archlinux) (push) Has been cancelled
Build and Push Docker Image / build-and-push (debian) (push) Has been cancelled
Build and Push Docker Image / build-and-push (fedora) (push) Has been cancelled
Build and Push Docker Image / build-and-push (gentoo) (push) Has been cancelled
Build and Push Docker Image / build-and-push (opensuse) (push) Has been cancelled
This commit is contained in:
@ -188,9 +188,13 @@ auto waybar::modules::Custom::update() -> void {
|
||||
fmt::arg("percentage", percentage_));
|
||||
label_.set_tooltip_markup(tooltip);
|
||||
} else if (text_ == tooltip_) {
|
||||
label_.set_tooltip_markup(str);
|
||||
if (label_.get_tooltip_markup() != str) {
|
||||
label_.set_tooltip_markup(str);
|
||||
}
|
||||
} else {
|
||||
label_.set_tooltip_markup(tooltip_);
|
||||
if (label_.get_tooltip_markup() != tooltip_) {
|
||||
label_.set_tooltip_markup(tooltip_);
|
||||
}
|
||||
}
|
||||
}
|
||||
auto style = label_.get_style_context();
|
||||
|
||||
Reference in New Issue
Block a user