Skip to content

Commit

Permalink
correct small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Mar 14, 2024
1 parent 9c06b09 commit fafb9e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/ai/nets/samj/gui/SAMJDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -551,8 +551,11 @@ public void drop(DropTargetDropEvent e) {
* Close the panel and the plugin, deleting the python process if it exists
*/
public void close() {
if (display != null)
if (display != null) {
display.notifyNetToClose();
display.switchToNone();
}
display = null;
this.panelModel.interrupExistingThreads();
if (SwingUtilities.windowForComponent(this).isDisplayable())
SwingUtilities.windowForComponent(this).dispose();
Expand Down

0 comments on commit fafb9e1

Please sign in to comment.