Trim the info panel's rows

A channel's permanent/temporary type is not worth a row, and a client's
platform reads better on the version line: Version: 3.6.2 … on Linux.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-20 07:46:36 +00:00
parent 65f3777673
commit ffe98be649
2 changed files with 12 additions and 3 deletions

View File

@@ -116,7 +116,6 @@ public final class InfoPanel extends JScrollPane {
private static String channelBody(ChannelNode ch) {
StringBuilder sb = new StringBuilder();
sb.append(heading(esc(ch.name)));
row(sb, "Type", ch.permanent ? "Permanent" : "Temporary");
if (ch.maxClients >= 0) row(sb, "Max clients", Integer.toString(ch.maxClients));
if (ch.hasPassword) row(sb, "Password", "protected");
if (!ch.topic.isEmpty()) row(sb, "Topic", esc(ch.topic));
@@ -154,8 +153,12 @@ public final class InfoPanel extends JScrollPane {
: "#" + cl.channelGroupId);
if (cl.talkPower != 0) row(sb, "Talk power", Integer.toString(cl.talkPower));
if (!cl.platform.isEmpty()) row(sb, "Platform", esc(cl.platform));
if (!cl.version.isEmpty()) row(sb, "Version", esc(cl.version));
if (!cl.version.isEmpty()) {
row(sb, "Version", esc(cl.version)
+ (cl.platform.isEmpty() ? "" : " on " + esc(cl.platform)));
} else if (!cl.platform.isEmpty()) {
row(sb, "Platform", esc(cl.platform));
}
if (cl.away) row(sb, "Status", "Away");
if (!cl.inputHardware) row(sb, "Microphone", "disabled");
else if (cl.inputMuted) row(sb, "Microphone", "muted");