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;
|
||||
while (list.get(selected).callback == null) {
|
||||
if(wasMovingUp) {
|
||||
if(selected-- == 0) {
|
||||
if(--selected < 0) {
|
||||
selected++;
|
||||
wasMovingUp = false;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if(selected++ == list.size()) {
|
||||
if(--selected == list.size()) {
|
||||
selected--;
|
||||
wasMovingUp = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue