From 4f8a396692c7ade124a736f125b2bfdeaac3c827 Mon Sep 17 00:00:00 2001 From: Jordan Leppert Date: Sat, 15 Feb 2020 16:51:18 +0000 Subject: [PATCH] Fix for 'Network label text not updated properly when formats contain Unicode characters' (#588) --- src/modules/network.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/network.cpp b/src/modules/network.cpp index 43f29f67..cd675c8a 100644 --- a/src/modules/network.cpp +++ b/src/modules/network.cpp @@ -279,7 +279,7 @@ auto waybar::modules::Network::update() -> void { fmt::arg("bandwidthUpBits", pow_format(bandwidth_up * 8ull / interval_.count(), "b/s")), fmt::arg("bandwidthDownOctets", pow_format(bandwidth_down / interval_.count(), "o/s")), fmt::arg("bandwidthUpOctets", pow_format(bandwidth_up / interval_.count(), "o/s"))); - if (text != label_.get_label()) { + if (text.compare(label_.get_label()) != 0) { label_.set_markup(text); if (text.empty()) { event_box_.hide();