Fix always using custom common directory
This commit is contained in:
@@ -54,14 +54,14 @@ public class Settings {
|
|||||||
|
|
||||||
CacheRepository.setInstance(HMCLCacheRepository.REPOSITORY);
|
CacheRepository.setInstance(HMCLCacheRepository.REPOSITORY);
|
||||||
HMCLCacheRepository.REPOSITORY.directoryProperty().bind(Bindings.createStringBinding(() -> {
|
HMCLCacheRepository.REPOSITORY.directoryProperty().bind(Bindings.createStringBinding(() -> {
|
||||||
String str = config().getCommonDirectory();
|
String str = getCommonDirectory();
|
||||||
try {
|
try {
|
||||||
Paths.get(str);
|
Paths.get(str);
|
||||||
return str;
|
return str;
|
||||||
} catch (InvalidPathException e) {
|
} catch (InvalidPathException e) {
|
||||||
return getDefaultCommonDirectory();
|
return getDefaultCommonDirectory();
|
||||||
}
|
}
|
||||||
}, config().commonDirectoryProperty()));
|
}, config().commonDirectoryProperty(), config().commonDirTypeProperty()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public Font getFont() {
|
public Font getFont() {
|
||||||
|
|||||||
Reference in New Issue
Block a user