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

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) {
var chooser = new javafx.stage.DirectoryChooser();
chooser.setTitle("Сменить директорию загрузок");
chooser.setInitialDirectory(dir.toFile());
chooser.setInitialDirectory(DirBridge.dir.toFile());
// Set new result
var newDir = chooser.showDialog(stage);
@ -210,4 +210,4 @@ var cliParams = {
settings.offline = cliParams.offline;
}
}
};
};