Skip to content

Commit

Permalink
Fix ENIGMA Plugin Compatibility (#358)
Browse files Browse the repository at this point in the history
Make the Listener's file chooser public and non-static again.
  • Loading branch information
RobertBColton committed Mar 15, 2018
1 parent 0e3943b commit b8ce4f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions org/lateralgm/main/LGM.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@

public final class LGM
{
public static final String version = "1.8.37"; //$NON-NLS-1$
public static final String version = "1.8.38"; //$NON-NLS-1$

// TODO: This list holds the class loader for any loaded plugins which should be
// cleaned up and closed when the application closes.
Expand Down Expand Up @@ -1329,7 +1329,7 @@ public static void onMainFrameClosed()
switch (result)
{
case JOptionPane.YES_OPTION:
Listener.fc.save(LGM.currentFile.uri,LGM.currentFile.format);
Listener.getInstance().fc.save(LGM.currentFile.uri,LGM.currentFile.format);
case JOptionPane.NO_OPTION:
System.exit(0);
break;
Expand Down
3 changes: 2 additions & 1 deletion org/lateralgm/main/Listener.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@
public class Listener extends TransferHandler implements ActionListener,CellEditorListener
{
private static final long serialVersionUID = 1L;

MListener mListener = new MListener();
static FileChooser fc = new FileChooser();
public FileChooser fc = new FileChooser();

private Listener()
{
Expand Down

0 comments on commit b8ce4f7

Please sign in to comment.