Fix file association for macOS

This commit is contained in:
SiboVG 2022-06-14 20:14:51 +02:00
parent 79f2fad994
commit 8604377748

View File

@ -39,9 +39,8 @@ final class OSXSetup {
* The handler for file associations
*/
public static final OpenFilesHandler OPEN_FILE_HANDLER = (e) -> {
System.out.println("Received open files event "+e.toString());
MRUDesignFile opts = MRUDesignFile.getInstance();
opts.addFile(e.getFiles().get(0).getAbsolutePath());
log.info("Opening file from association: " + e.getFiles().get(0));
BasicFrame.open(e.getFiles().get(0), null);
};
/**