Merge pull request #1669 from asas1asas200/zeng-fix-network

This commit is contained in:
Alex 2022-08-30 20:43:03 +02:00 committed by GitHub
commit 90878a5c98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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);
}
}