Fix file association for macOS
This commit is contained in:
parent
79f2fad994
commit
8604377748
@ -39,9 +39,8 @@ final class OSXSetup {
|
|||||||
* The handler for file associations
|
* The handler for file associations
|
||||||
*/
|
*/
|
||||||
public static final OpenFilesHandler OPEN_FILE_HANDLER = (e) -> {
|
public static final OpenFilesHandler OPEN_FILE_HANDLER = (e) -> {
|
||||||
System.out.println("Received open files event "+e.toString());
|
log.info("Opening file from association: " + e.getFiles().get(0));
|
||||||
MRUDesignFile opts = MRUDesignFile.getInstance();
|
BasicFrame.open(e.getFiles().get(0), null);
|
||||||
opts.addFile(e.getFiles().get(0).getAbsolutePath());
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user