Skip to content

Commit

Permalink
Fix issue with invalid storage dir
Browse files Browse the repository at this point in the history
  • Loading branch information
crschnick committed Oct 8, 2024
1 parent 41786d9 commit 531d019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/io/xpipe/app/prefs/AppPrefs.java
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ private void loadLocal() {

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);
}

Expand Down

0 comments on commit 531d019

Please sign in to comment.