v3.2.5: fixed tab cycling in WndBag

This commit is contained in:
Evan Debenham
2025-09-18 12:22:39 -04:00
parent 389fbc45e7
commit 1dedfb3029
2 changed files with 4 additions and 1 deletions

View File

@@ -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;
}
}
}

View File

@@ -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;
}