mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-10-01 17:47:30 +13: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);
|
TrackEvent.debug("Loading preferences value for key " + id + " from value " + tree);
|
||||||
return JacksonMapper.getDefault().treeToValue(tree, type);
|
return JacksonMapper.getDefault().treeToValue(tree, type);
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
ErrorEvent.fromThrowable(ex).omit().handle();
|
ErrorEvent.fromThrowable(ex).expected().omit().handle();
|
||||||
return defaultObject;
|
return defaultObject;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -358,7 +358,7 @@ public class DataStoreEntry extends StorageElement {
|
||||||
@Override
|
@Override
|
||||||
public Path[] getShareableFiles() {
|
public Path[] getShareableFiles() {
|
||||||
var notes = directory.resolve("notes.md");
|
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);
|
return Stream.concat(list.stream(), Files.exists(notes) ? Stream.of(notes) : Stream.of()).toArray(Path[]::new);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue