Skip to content

Commit 7d8ab53

Browse files
committed
reset Xcode installed state to fix the window
1 parent b204d80 commit 7d8ab53

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

java/src/processing/mode/java/ExportPrompt.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,8 @@ public void mousePressed(MouseEvent event) {
296296
} else {
297297
// Launch the process asynchronously
298298
PApplet.exec("xcode-select", "--install");
299+
// Reset the installed state so that the message will change.
300+
JavaBuild.resetXcodeInstalled();
299301
// Close the window so that we can rebuild it with different text
300302
// once they've finished installing the Command Line Tools.
301303
dialog.setVisible(false);

java/src/processing/mode/java/JavaBuild.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,6 +1104,11 @@ static protected boolean isXcodeInstalled() {
11041104
}
11051105

11061106

1107+
static protected void resetXcodeInstalled() {
1108+
xcodeInstalled = null; // give them another chance
1109+
}
1110+
1111+
11071112
/**
11081113
* Run the launch4j build.xml file through ant to create the exe.
11091114
* Most of this code was lifted from Android mode.

0 commit comments

Comments
 (0)