|
@@ -33,6 +33,7 @@ public class Settings {
|
|
|
public static final boolean DEFAULT_CHECK_FOR_UPDATES = false;
|
|
|
public static final boolean DEFAULT_START_HIDDEN = false;
|
|
|
public static final boolean DEFAULT_AUTO_CLOSE_VAULTS = false;
|
|
|
+ public static final boolean DEFAULT_USE_KEYCHAIN = true;
|
|
|
public static final int DEFAULT_PORT = 42427;
|
|
|
public static final int DEFAULT_NUM_TRAY_NOTIFICATIONS = 3;
|
|
|
public static final WebDavUrlScheme DEFAULT_GVFS_SCHEME = WebDavUrlScheme.DAV;
|
|
@@ -53,6 +54,7 @@ public class Settings {
|
|
|
private final BooleanProperty checkForUpdates = new SimpleBooleanProperty(DEFAULT_CHECK_FOR_UPDATES);
|
|
|
private final BooleanProperty startHidden = new SimpleBooleanProperty(DEFAULT_START_HIDDEN);
|
|
|
private final BooleanProperty autoCloseVaults = new SimpleBooleanProperty(DEFAULT_AUTO_CLOSE_VAULTS);
|
|
|
+ private final BooleanProperty useKeychain = new SimpleBooleanProperty(DEFAULT_USE_KEYCHAIN);
|
|
|
private final IntegerProperty port = new SimpleIntegerProperty(DEFAULT_PORT);
|
|
|
private final IntegerProperty numTrayNotifications = new SimpleIntegerProperty(DEFAULT_NUM_TRAY_NOTIFICATIONS);
|
|
|
private final ObjectProperty<WebDavUrlScheme> preferredGvfsScheme = new SimpleObjectProperty<>(DEFAULT_GVFS_SCHEME);
|
|
@@ -85,6 +87,7 @@ public class Settings {
|
|
|
checkForUpdates.addListener(this::somethingChanged);
|
|
|
startHidden.addListener(this::somethingChanged);
|
|
|
autoCloseVaults.addListener(this::somethingChanged);
|
|
|
+ useKeychain.addListener(this::somethingChanged);
|
|
|
port.addListener(this::somethingChanged);
|
|
|
numTrayNotifications.addListener(this::somethingChanged);
|
|
|
preferredGvfsScheme.addListener(this::somethingChanged);
|
|
@@ -140,6 +143,8 @@ public class Settings {
|
|
|
return autoCloseVaults;
|
|
|
}
|
|
|
|
|
|
+ public BooleanProperty useKeychain() { return useKeychain; }
|
|
|
+
|
|
|
public IntegerProperty port() {
|
|
|
return port;
|
|
|
}
|