Fix issue with invalid storage dir

This commit is contained in:
crschnick 2024-10-08 00:38:05 +00:00
parent 41786d99cd
commit 531d019b54

View file

@ -514,7 +514,7 @@ public class AppPrefs {
private void fixInvalidLocalValues() {
// You can set the directory to empty in the settings
if (storageDirectory.get() == null) {
if (storageDirectory.get() == null || storageDirectory.get().toString().isBlank()) {
storageDirectory.setValue(DEFAULT_STORAGE_DIR);
}