diff options
author | FrHun <28605587+frhun@users.noreply.github.com> | 2021-07-22 03:00:41 +0200 |
---|---|---|
committer | Gunnar Beutner <gunnar@beutner.name> | 2021-07-22 04:33:41 +0200 |
commit | 7bfd319652052c04999ed722d70ede7568e1907a (patch) | |
tree | a28d6f27395348ee094d64c169f143562c76101a /Userland/Applets | |
parent | 02c0b1f380eb9042f64380b0a93b41c8c6f01254 (diff) | |
download | serenity-7bfd319652052c04999ed722d70ede7568e1907a.zip |
NetworkApplet: Omit unnecessary newline in tooltip
Diffstat (limited to 'Userland/Applets')
-rw-r--r-- | Userland/Applets/Network/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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 |