Set and delete our avatar from the Self menu and the avatar's menu
As in TeamSpeak 3, Self offers "Set avatar…", which picks an image and uploads it, and "Delete avatar" while we have one; the old avatar dialog is gone. Setting (and stealing) is offered only while the server grants i_client_max_avatar_filesize. Right-clicking our own avatar in the info panel offers the same two beside saving it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -232,9 +232,24 @@ public final class MainFrame extends JFrame implements ServerTabPane.Listener {
|
||||
changeNickname();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canSetAvatar() {
|
||||
return selected != null && selected.session().canSetAvatar();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSetAvatar() {
|
||||
if (selected != null && selected.session().isConnected()) selected.showAvatarDialog();
|
||||
if (selected != null) selected.avatar().choose();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasAvatar() {
|
||||
return selected != null && selected.session().hasAvatar();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDeleteAvatar() {
|
||||
if (selected != null) selected.avatar().delete();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user