Фикс диалогового окна с выбором папки

This commit is contained in:
Gravit 2018-11-04 10:34:40 +07:00
parent 077c4f4c78
commit 7a7abd09bd
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -78,7 +78,7 @@ var settingsOverlay = {
settingsOverlay.overlay.lookup("#changeDir").setOnAction(function(event) { settingsOverlay.overlay.lookup("#changeDir").setOnAction(function(event) {
var chooser = new javafx.stage.DirectoryChooser(); var chooser = new javafx.stage.DirectoryChooser();
chooser.setTitle("Сменить директорию загрузок"); chooser.setTitle("Сменить директорию загрузок");
chooser.setInitialDirectory(dir.toFile()); chooser.setInitialDirectory(DirBridge.dir.toFile());
// Set new result // Set new result
var newDir = chooser.showDialog(stage); var newDir = chooser.showDialog(stage);