Skip to content

Commit

Permalink
NetworkApplet: Omit unnecessary newline in tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
frhun authored and gunnarbeutner committed Jul 22, 2021
1 parent 02c0b1f commit 7bfd319
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Userland/Applets/Network/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ class NetworkWidget final : public GUI::ImageWidget {
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
Expand Down

0 comments on commit 7bfd319

Please sign in to comment.