Skip to content

Commit

Permalink
correct error on dispose
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Dec 4, 2024
1 parent 35c9911 commit af521fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ai/nets/samj/gui/MainGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public MainGUI(List<SAMModel> modelList, ConsumerInterface consumer) {

drawerPanel = ModelDrawerPanel.create(DRAWER_HORIZONTAL_SIZE, this.modelDrawerListener);

setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);

cmbModels.getButton().addActionListener(e -> toggleDrawer());
go.addActionListener(e -> loadModel());
Expand Down

0 comments on commit af521fb

Please sign in to comment.