fix(network): dont escape essid in tooltip

Like #1256 , but escape by calling `set_tooltip_markup()`, because the
label text uses `set_markup()`.
This commit is contained in:
asas1asas200 2022-08-30 23:05:34 +08:00
parent 330d166c82
commit f6322d2dd1

View File

@ -383,10 +383,10 @@ auto waybar::modules::Network::update() -> void {
fmt::arg("bandwidthTotalBytes",
pow_format((bandwidth_up + bandwidth_down) / interval_.count(), "B/s")));
if (label_.get_tooltip_text() != tooltip_text) {
label_.set_tooltip_text(tooltip_text);
label_.set_tooltip_markup(tooltip_text);
}
} else if (label_.get_tooltip_text() != text) {
label_.set_tooltip_text(text);
label_.set_tooltip_markup(text);
}
}