Skip to content

Commit bf9ef54

Browse files
committed
Notify user of success when building python env
Closes #11
1 parent a5b9075 commit bf9ef54

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/java/org/scijava/plugins/scripting/python/RebuildEnvironment.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,16 @@ public void run() {
114114
.subscribeOutput(this::report).subscribeError(this::report)
115115
.subscribeProgress((msg, cur, max) -> Splash.update(msg, (double) cur /
116116
max));
117-
System.err.println("Building Python environment");
118117
// HACK: stderr stream triggers console window show.
118+
System.err.println("Building Python environment");
119119
Splash.show();
120120
builder.build(targetDir);
121+
// Notify user of success
122+
if (uiService != null) {
123+
uiService.showDialog(
124+
"Python environment setup was successful and is ready to use!",
125+
"Environment Ready", DialogPrompt.MessageType.INFORMATION_MESSAGE);
126+
}
121127
}
122128
catch (IOException exc) {
123129
log.error("Failed to build Python environment", exc);

0 commit comments

Comments
 (0)