Show our own name in bold, in the row and in its editor

The renderer asks the panel which id is ours rather than reading
ClientEntry.self: our own row usually arrives among the enter-view events
of the connect handshake, before the connection knows its own client id,
so that flag was left false. It is now stamped once the id is known,
which also fixes the "(you)" marker in the info panel.

The inline editor matches, and sits 2px further left so its text lines up
with the label it replaces rather than with its own border.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-19 19:59:55 +00:00
parent 08e6c51e90
commit acfe25db15
4 changed files with 24 additions and 5 deletions

View File

@@ -274,6 +274,11 @@ public final class TeamspeakConnection implements TS3Listener {
// Protocol connection established; anything past this point is best-effort.
selfClientId = client.getClientId();
// Our own row usually arrives among the enter-view events the connect
// handshake carries, i.e. before our id was known here, so it has to be
// marked once it is.
ClientEntry ourselves = model.getClient(selfClientId);
if (ourselves != null) ourselves.self = true;
fileTransfers = new FileTransferManager(client, () -> serverHost);
client.setMicrophone(microphone);
icons.retryFailed();