Skip to content

Commit f8a9044

Browse files
SamCarlbergbradamiller
authored andcommitted
Post a warning event when the user tries to deploy (#753)
An alert will show every time, even in the same session, for maximum annoyance
1 parent 9031aa7 commit f8a9044

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ui/src/main/java/edu/wpi/grip/ui/MainWindowController.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,13 @@ protected void generate() {
347347

348348
@FXML
349349
protected void deploy() {
350+
eventBus.post(new WarningEvent(
351+
"Deploy has been deprecated",
352+
"The deploy tool has been deprecated and is no longer supported. "
353+
+ "It will be removed in a future release.\n\n"
354+
+ "Instead, use code generation to create a Java, C++, or Python class that handles all"
355+
+ " the OpenCV code and can be easily integrated into a WPILib robot program."));
356+
350357
ImageView graphic = new ImageView(new Image("/edu/wpi/grip/ui/icons/settings.png"));
351358
graphic.setFitWidth(DPIUtility.SMALL_ICON_SIZE);
352359
graphic.setFitHeight(DPIUtility.SMALL_ICON_SIZE);

0 commit comments

Comments
 (0)