Skip to content

Commit 08498e5

Browse files
committed
#24 Fix bash browsing in settings by removing check and don't open browse in the previous bash position
1 parent a7ff891 commit 08498e5

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/main/java/com/github/introfog/gitwave/controller/SettingsController.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import javafx.scene.control.Label;
3333
import javafx.scene.control.TextField;
3434
import javafx.stage.FileChooser;
35-
import javafx.stage.FileChooser.ExtensionFilter;
3635
import javafx.util.Duration;
3736
import org.slf4j.Logger;
3837
import 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());

0 commit comments

Comments
 (0)