1
0
Fork 0

add item deselect

This commit is contained in:
Sen 2025-09-06 14:25:30 +02:00
parent ac65a43bbc
commit 46c95630f3
Signed by: sen
GPG key ID: 3AC50A6F47D1B722

View file

@ -1557,8 +1557,10 @@ public class Client implements IThreadListener {
private void select(int dir) {
int last = this.player.getSelectedIndex();
int n = 0;
if(last < 0)
if(last < 0) {
last = 0;
this.player.setSelectedIndex(0);
}
do {
this.player.setSelectedIndex(this.player.getSelectedIndex() + dir);
if(this.player.getSelectedIndex() < 0)