diff --git a/libraries/bowler-script-kernel b/libraries/bowler-script-kernel index 2b0699887..9ec6b59fb 160000 --- a/libraries/bowler-script-kernel +++ b/libraries/bowler-script-kernel @@ -1 +1 @@ -Subproject commit 2b0699887dc7cff28559c260238207254ecc7898 +Subproject commit 9ec6b59fb0fa53a561c0fa802a722b6caeda1561 diff --git a/src/main/java/com/neuronrobotics/bowlerstudio/BowlerStudio.java b/src/main/java/com/neuronrobotics/bowlerstudio/BowlerStudio.java index ae74fa894..9a37456d7 100644 --- a/src/main/java/com/neuronrobotics/bowlerstudio/BowlerStudio.java +++ b/src/main/java/com/neuronrobotics/bowlerstudio/BowlerStudio.java @@ -17,6 +17,7 @@ import com.neuronrobotics.bowlerstudio.scripting.DownloadManager; import com.neuronrobotics.bowlerstudio.scripting.GitHubWebFlow; import com.neuronrobotics.bowlerstudio.scripting.IApprovalForDownload; +import com.neuronrobotics.bowlerstudio.scripting.IDownloadManagerEvents; import com.neuronrobotics.bowlerstudio.scripting.IURLOpen; import com.neuronrobotics.bowlerstudio.scripting.PasswordManager; import com.neuronrobotics.bowlerstudio.scripting.ScriptingEngine; @@ -359,6 +360,18 @@ public void open(URI toOpe) { reporter.uncaughtException(Thread.currentThread(), e); } + DownloadManager.setDownloadEvents(new IDownloadManagerEvents() { + + @Override + public void startDownload() { + SplashManager.renderSplashFrame(0, "Downloading..."); + } + + @Override + public void finishDownload() { + SplashManager.closeSplash(); + } + }); DownloadManager.setApproval(new IApprovalForDownload() { private ButtonType buttonType = null; @@ -369,7 +382,7 @@ public boolean get(String name, String url) { BowlerKernel.runLater(() -> { Alert alert = new Alert(Alert.AlertType.CONFIRMATION); alert.setTitle("Message"); - alert.setHeaderText("Would you like to download: " + name + "\nfrom:\n" + url); + alert.setHeaderText("Would you like add the " + name + "plugin?" ); Node root = alert.getDialogPane(); Stage stage = (Stage) alert.getDialogPane().getScene().getWindow(); stage.setOnCloseRequest(ev -> alert.hide());