1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:37:35 +00:00

NetworkApplet: Omit unnecessary newline in tooltip

This commit is contained in:
FrHun 2021-07-22 03:00:41 +02:00 committed by Gunnar Beutner
parent 02c0b1f380
commit 7bfd319652

View file

@ -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