v3.2.5: fixed tab cycling in WndBag
This commit is contained in:
@@ -133,6 +133,9 @@ public class WndBag extends WndTabbed {
|
||||
BagTab tab = new BagTab( b, i++ );
|
||||
add( tab );
|
||||
tab.select( b == bag );
|
||||
if (b == bag){
|
||||
selected = tab;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ public class WndTabbed extends Window {
|
||||
int idx = tabs.indexOf(selected);
|
||||
idx++;
|
||||
if (idx >= tabs.size()) idx = 0;
|
||||
select(idx);
|
||||
tabs.get(idx).onClick();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user