@@ -6247,6 +6247,7 @@ public void selectOutput(String prompt, String callback) {
62476247 selectOutput (prompt , callback , null );
62486248 }
62496249
6250+
62506251 public void selectOutput (String prompt , String callback , File file ) {
62516252 selectOutput (prompt , callback , file , this );
62526253 }
@@ -6271,6 +6272,8 @@ static public void selectOutput(String prompt, String callbackMethod,
62716272 }
62726273
62736274
6275+ // Will remove the 'sketch' parameter once we get an upstream JOGL fix
6276+ // https://github.com/processing/processing/issues/3831
62746277 static protected void selectImpl (final String prompt ,
62756278 final String callbackMethod ,
62766279 final File defaultSelection ,
@@ -6281,7 +6284,9 @@ static protected void selectImpl(final String prompt,
62816284 EventQueue .invokeLater (new Runnable () {
62826285 public void run () {
62836286 File selectedFile = null ;
6284- boolean hide = sketch != null && sketch .g instanceof PGraphicsOpenGL && platform == WINDOWS ;
6287+
6288+ boolean hide = (sketch != null ) &&
6289+ (sketch .g instanceof PGraphicsOpenGL ) && (platform == WINDOWS );
62856290 if (hide ) sketch .surface .setVisible (false );
62866291
62876292 if (useNativeSelect ) {
@@ -6355,6 +6360,8 @@ static public void selectFolder(final String prompt,
63556360 }
63566361
63576362
6363+ // Will remove the 'sketch' parameter once we get an upstream JOGL fix
6364+ // https://github.com/processing/processing/issues/3831
63586365 static public void selectFolder (final String prompt ,
63596366 final String callbackMethod ,
63606367 final File defaultSelection ,
@@ -6365,7 +6372,8 @@ static public void selectFolder(final String prompt,
63656372 public void run () {
63666373 File selectedFile = null ;
63676374
6368- boolean hide = sketch != null && sketch .g instanceof PGraphicsOpenGL && platform == WINDOWS ;
6375+ boolean hide = (sketch != null ) &&
6376+ (sketch .g instanceof PGraphicsOpenGL ) && (platform == WINDOWS );
63696377 if (hide ) sketch .surface .setVisible (false );
63706378
63716379 if (platform == MACOSX && useNativeSelect != false ) {
0 commit comments