mirror of
https://github.com/xpipe-io/xpipe.git
synced 2025-04-19 10:43:39 +00:00
Small fixes
This commit is contained in:
parent
56087fec1c
commit
5d45d9c25b
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue