Small fixes

This commit is contained in:
crschnick 2024-05-22 06:31:04 +00:00
parent 56087fec1c
commit 5d45d9c25b
2 changed files with 2 additions and 2 deletions

View file

@ -101,7 +101,7 @@ public class AppPrefsStorageHandler {
TrackEvent.debug("Loading preferences value for key " + id + " from value " + tree);
return JacksonMapper.getDefault().treeToValue(tree, type);
} catch (Exception ex) {
ErrorEvent.fromThrowable(ex).omit().handle();
ErrorEvent.fromThrowable(ex).expected().omit().handle();
return defaultObject;
}
}

View file

@ -358,7 +358,7 @@ public class DataStoreEntry extends StorageElement {
@Override
public Path[] getShareableFiles() {
var notes = directory.resolve("notes.md");
var list = List.of(directory.resolve("store.json"), directory.resolve("entry.json"), notes);
var list = List.of(directory.resolve("store.json"), directory.resolve("entry.json"));
return Stream.concat(list.stream(), Files.exists(notes) ? Stream.of(notes) : Stream.of()).toArray(Path[]::new);
}