File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
ui/src/main/java/edu/wpi/grip/ui Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1313import javafx .scene .control .SplitPane ;
1414import javafx .scene .layout .Region ;
1515import javafx .stage .FileChooser ;
16+ import javafx .stage .FileChooser .ExtensionFilter ;
1617
1718import javax .inject .Inject ;
1819import java .io .File ;
@@ -149,6 +150,7 @@ public boolean saveProject() throws IOException {
149150 public boolean saveProjectAs () throws IOException {
150151 final FileChooser fileChooser = new FileChooser ();
151152 fileChooser .setTitle ("Save Project As" );
153+ fileChooser .getExtensionFilters ().add (new ExtensionFilter ("GRIP File" , "*.grip" ));
152154
153155 project .getFile ().ifPresent (file -> fileChooser .setInitialDirectory (file .getParentFile ()));
154156
@@ -184,4 +186,3 @@ public void deployFRC() {
184186
185187 }
186188}
187-
You can’t perform that action at this time.
0 commit comments