remove redundant code, fix channel selection index when switching categories
This commit is contained in:
parent
4802550b1b
commit
8b3005bac9
1 changed files with 1 additions and 5 deletions
|
|
@ -97,6 +97,7 @@ public class MenuPanel extends JPanel {
|
||||||
switch (menuPosition) {
|
switch (menuPosition) {
|
||||||
case MENU_CATEGORIES -> {
|
case MENU_CATEGORIES -> {
|
||||||
loadCategories();
|
loadCategories();
|
||||||
|
channelIndex = 0;
|
||||||
|
|
||||||
categoryList.setEnabled(true);
|
categoryList.setEnabled(true);
|
||||||
channelList.setEnabled(false);
|
channelList.setEnabled(false);
|
||||||
|
|
@ -133,11 +134,6 @@ public class MenuPanel extends JPanel {
|
||||||
vsp.setDividerLocation(50);
|
vsp.setDividerLocation(50);
|
||||||
add(vsp);
|
add(vsp);
|
||||||
|
|
||||||
String[] items = new String[128];
|
|
||||||
for (int i = 0; i < 128; i++) {
|
|
||||||
items[i] = "item" + i;
|
|
||||||
}
|
|
||||||
|
|
||||||
categoryList = new JList<Category>();
|
categoryList = new JList<Category>();
|
||||||
categoryList.setFont(getFont());
|
categoryList.setFont(getFont());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue