This commit is contained in:
parent
5044570037
commit
7ec3cf005b
1 changed files with 2 additions and 2 deletions
|
@ -57,13 +57,13 @@ public class CBWindow extends JFrame implements WindowListener {
|
||||||
int max = 0;
|
int max = 0;
|
||||||
while (list.get(selected).callback == null) {
|
while (list.get(selected).callback == null) {
|
||||||
if(wasMovingUp) {
|
if(wasMovingUp) {
|
||||||
if(selected-- == 0) {
|
if(--selected < 0) {
|
||||||
selected++;
|
selected++;
|
||||||
wasMovingUp = false;
|
wasMovingUp = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if(selected++ == list.size()) {
|
if(--selected == list.size()) {
|
||||||
selected--;
|
selected--;
|
||||||
wasMovingUp = true;
|
wasMovingUp = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue