Skip to content

Commit

Permalink
1.修复选择筛选模式bug
Browse files Browse the repository at this point in the history
  • Loading branch information
WuYi5451 committed Sep 7, 2024
1 parent eee1023 commit 6fa2d48
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public void createButtons() {
GameQueue gameQueue = GameDataCache.selectGameQueueList.get(key);

JCheckBox button = new JCheckBox(gameQueue.getName());
button.setSelected(gameQueue.isSelect());
button.addActionListener(e -> {
gameQueue.setSelect(true);
button.setSelected(GameDataCache.selectGameQueueList.get(key).isSelect());
button.addChangeListener(e -> {
GameDataCache.selectGameQueueList.get(key).setSelect(button.isSelected());
}
);
button.setPreferredSize(new Dimension(250, 30));
Expand Down

0 comments on commit 6fa2d48

Please sign in to comment.