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 32
32
import javafx .scene .control .Label ;
33
33
import javafx .scene .control .TextField ;
34
34
import javafx .stage .FileChooser ;
35
- import javafx .stage .FileChooser .ExtensionFilter ;
36
35
import javafx .util .Duration ;
37
36
import org .slf4j .Logger ;
38
37
import org .slf4j .LoggerFactory ;
@@ -102,17 +101,6 @@ protected void cleanLogs() {
102
101
@ FXML
103
102
protected void browseGitBashExe () {
104
103
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
-
116
104
File selectedFile = fileChooser .showOpenDialog (getStage ());
117
105
if (selectedFile != null ) {
118
106
pathToBash .setText (selectedFile .getAbsolutePath ());
You can’t perform that action at this time.
0 commit comments