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++ );
|
BagTab tab = new BagTab( b, i++ );
|
||||||
add( tab );
|
add( tab );
|
||||||
tab.select( b == bag );
|
tab.select( b == bag );
|
||||||
|
if (b == bag){
|
||||||
|
selected = tab;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ public class WndTabbed extends Window {
|
|||||||
int idx = tabs.indexOf(selected);
|
int idx = tabs.indexOf(selected);
|
||||||
idx++;
|
idx++;
|
||||||
if (idx >= tabs.size()) idx = 0;
|
if (idx >= tabs.size()) idx = 0;
|
||||||
select(idx);
|
tabs.get(idx).onClick();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user