From 7bfd319652052c04999ed722d70ede7568e1907a Mon Sep 17 00:00:00 2001 From: FrHun <28605587+frhun@users.noreply.github.com> Date: Thu, 22 Jul 2021 03:00:41 +0200 Subject: [PATCH] NetworkApplet: Omit unnecessary newline in tooltip --- Userland/Applets/Network/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Userland/Applets/Network/main.cpp b/Userland/Applets/Network/main.cpp index d54cf953ae..196fafc3c2 100644 --- a/Userland/Applets/Network/main.cpp +++ b/Userland/Applets/Network/main.cpp @@ -131,7 +131,10 @@ private: if (ip_address != "null") connected_adapters++; - adapter_info.appendff("{}: {}\n", ifname, ip_address); + if (!adapter_info.is_empty()) + adapter_info.append('\n'); + + adapter_info.appendff("{}: {}", ifname, ip_address); }); // show connected icon so long as at least one adapter is connected