Skip to content

Commit 9d904da

Browse files
JxJxJxMxNxScmaglie
authored andcommitted
Fixed the bug that doesn't updates the title when an example sketch is saved
1 parent 3a3bc5b commit 9d904da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/processing/app/Editor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1970,7 +1970,7 @@ protected boolean handleOpenInternal(File sketchFile) {
19701970
return true;
19711971
}
19721972

1973-
private void updateTitle() {
1973+
public void updateTitle() {
19741974
if (sketchController == null) {
19751975
return;
19761976
}

app/src/processing/app/SketchController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ protected boolean saveAs() throws IOException {
438438
//editor.sketchbook.rebuildMenusAsync();
439439
editor.base.rebuildSketchbookMenus();
440440
editor.header.rebuild();
441-
441+
editor.updateTitle();
442442
// Make sure that it's not an untitled sketch
443443
setUntitled(false);
444444

0 commit comments

Comments
 (0)