perf(label): skip redundant markup updates
This commit is contained in:
@@ -94,12 +94,12 @@ auto Window::update() -> void {
|
||||
old_app_id_ = app_id_;
|
||||
}
|
||||
|
||||
label_.set_markup(waybar::util::rewriteString(
|
||||
setLabelMarkup(waybar::util::rewriteString(
|
||||
fmt::format(fmt::runtime(format_), fmt::arg("title", window_), fmt::arg("app_id", app_id_),
|
||||
fmt::arg("shell", shell_), fmt::arg("marks", marks_)),
|
||||
config_["rewrite"]));
|
||||
if (tooltipEnabled()) {
|
||||
label_.set_tooltip_markup(window_);
|
||||
setTooltipMarkup(window_);
|
||||
}
|
||||
|
||||
updateAppIcon();
|
||||
|
||||
Reference in New Issue
Block a user