File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
src/main/java/com/github/introfog/gitwave/controller Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 3232import javafx .scene .control .Label ;
3333import javafx .scene .control .TextField ;
3434import javafx .stage .FileChooser ;
35- import javafx .stage .FileChooser .ExtensionFilter ;
3635import javafx .util .Duration ;
3736import org .slf4j .Logger ;
3837import org .slf4j .LoggerFactory ;
@@ -102,17 +101,6 @@ protected void cleanLogs() {
102101 @ FXML
103102 protected void browseGitBashExe () {
104103 FileChooser fileChooser = new FileChooser ();
105- FileChooser .ExtensionFilter bashFilter = new ExtensionFilter ("Path to bash" , "*.*" ) ;
106- fileChooser .getExtensionFilters ().add (bashFilter );
107-
108- final String pathToGitBashStr = AppConfig .getInstance ().getPathToBash ();
109- if (pathToGitBashStr != null ) {
110- File bashDir = new File (pathToGitBashStr .substring (0 , pathToGitBashStr .lastIndexOf ('/' )));
111- if (bashDir .exists () && bashDir .isDirectory ()) {
112- fileChooser .setInitialDirectory (bashDir );
113- }
114- }
115-
116104 File selectedFile = fileChooser .showOpenDialog (getStage ());
117105 if (selectedFile != null ) {
118106 pathToBash .setText (selectedFile .getAbsolutePath ());
You can’t perform that action at this time.
0 commit comments