Skip to content

Commit

Permalink
Post a warning event when the user tries to deploy (#753)
Browse files Browse the repository at this point in the history
An alert will show every time, even in the same session, for maximum annoyance
  • Loading branch information
SamCarlberg authored and bradamiller committed Dec 30, 2016
1 parent 9031aa7 commit f8a9044
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ui/src/main/java/edu/wpi/grip/ui/MainWindowController.java
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,13 @@ protected void generate() {

@FXML
protected void deploy() {
eventBus.post(new WarningEvent(
"Deploy has been deprecated",
"The deploy tool has been deprecated and is no longer supported. "
+ "It will be removed in a future release.\n\n"
+ "Instead, use code generation to create a Java, C++, or Python class that handles all"
+ " the OpenCV code and can be easily integrated into a WPILib robot program."));

ImageView graphic = new ImageView(new Image("/edu/wpi/grip/ui/icons/settings.png"));
graphic.setFitWidth(DPIUtility.SMALL_ICON_SIZE);
graphic.setFitHeight(DPIUtility.SMALL_ICON_SIZE);
Expand Down

0 comments on commit f8a9044

Please sign in to comment.