Better name for variable

This commit is contained in:
Laurent Clouet
2018-08-18 01:44:40 +02:00
parent 6ded57fc0a
commit e5f837a249
3 changed files with 10 additions and 10 deletions

View File

@@ -146,7 +146,7 @@ public class Settings implements Activity {
JLabel cacheLabel = new JLabel("Working directory:");
directory_panel.add(cacheLabel);
String destination = DUMMY_CACHE_DIR;
if (config.getUserSpecifiedACacheDir()) {
if (config.getUserHasSpecifiedACacheDir()) {
destination = config.getStorageDir().getName();
}
@@ -607,7 +607,7 @@ public class Settings implements Activity {
parent.setCredentials(login.getText(), new String(password.getPassword()));
String cachePath = null;
if (config.getUserSpecifiedACacheDir() && config.getStorageDir() != null) {
if (config.getUserHasSpecifiedACacheDir() && config.getStorageDir() != null) {
cachePath = config.getStorageDir().getAbsolutePath();
}