mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-06-24 00:53:02 +12:00
Fix vault preferences not respecting custom storage directory
This commit is contained in:
parent
d2d0df9789
commit
f7cf7284c7
|
@ -93,8 +93,7 @@ public class AppPrefs {
|
|||
map(new SimpleBooleanProperty(true), "openConnectionSearchWindowOnConnectionCreation", Boolean.class);
|
||||
final ObjectProperty<Path> storageDirectory =
|
||||
map(new SimpleObjectProperty<>(DEFAULT_STORAGE_DIR), "storageDirectory", Path.class);
|
||||
private final AppPrefsStorageHandler vaultStorageHandler =
|
||||
new AppPrefsStorageHandler(storageDirectory().getValue().resolve("preferences.json"));
|
||||
private AppPrefsStorageHandler vaultStorageHandler;
|
||||
final BooleanProperty developerMode = map(new SimpleBooleanProperty(false), "developerMode", Boolean.class);
|
||||
final BooleanProperty developerDisableUpdateVersionCheck =
|
||||
map(new SimpleBooleanProperty(false), "developerDisableUpdateVersionCheck", Boolean.class);
|
||||
|
@ -428,6 +427,8 @@ public class AppPrefs {
|
|||
|
||||
loadValue(globalStorageHandler, value);
|
||||
}
|
||||
|
||||
vaultStorageHandler = new AppPrefsStorageHandler(storageDirectory().getValue().resolve("preferences.json"));
|
||||
}
|
||||
|
||||
private void loadSharedRemote() {
|
||||
|
|
Loading…
Reference in a new issue