Skip to content

Commit dea5ffa

Browse files
author
Arduino Board
committed
fixed bug in the URL that appears in the output window
2 parents f7d476d + ec8b027 commit dea5ffa

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

app/src/processing/app/Editor.java

+13
Original file line numberDiff line numberDiff line change
@@ -2374,7 +2374,11 @@ private void uploadToGitHub(String serialNumber) {
23742374
//edit the current gist
23752375
file.setContent(sketch.getCurrentCode().getProgram());
23762376
String filename = new String(sketch.getCurrentCode().getPrettyName()+".pde");
2377+
<<<<<<< HEAD
23772378
//remove old files (get rid of this feature if we want to save multiple projects)
2379+
=======
2380+
//remove old files
2381+
>>>>>>> ec8b02761443c32a6bb28a17edf90a236b106422
23782382
for (String key : gist.getFiles().keySet()) {
23792383
if(!key.equals(filename)){
23802384
service.updateGist(gist.setFiles(Collections.singletonMap(key, new GistFile())));
@@ -2383,7 +2387,10 @@ private void uploadToGitHub(String serialNumber) {
23832387

23842388
gist.setFiles(Collections.singletonMap(filename, file));
23852389
service.updateGist(gist);
2390+
<<<<<<< HEAD
23862391
System.out.println(new String("You can find the source online at: " + gist.getHtmlUrl()));
2392+
=======
2393+
>>>>>>> ec8b02761443c32a6bb28a17edf90a236b106422
23872394
foundMatchingGist=true;
23882395
}
23892396
}
@@ -2394,9 +2401,15 @@ private void uploadToGitHub(String serialNumber) {
23942401
file.setContent(sketch.getCurrentCode().getProgram());
23952402
gist.setFiles(Collections.singletonMap(new String(sketch.getCurrentCode().getPrettyName()+".pde"), file));
23962403
gist = service.createGist(gist);
2404+
<<<<<<< HEAD
23972405
System.out.println(new String("You can find the source online at: " + gist.getHtmlUrl()));
23982406

23992407
}
2408+
=======
2409+
2410+
}
2411+
System.out.println(new String("You can find the source online at: " + gist.getHtmlUrl()));
2412+
>>>>>>> ec8b02761443c32a6bb28a17edf90a236b106422
24002413
}catch(IOException e){
24012414
System.out.println(e.getMessage());
24022415
}

0 commit comments

Comments
 (0)