|
@@ -40,7 +40,8 @@ public class Settings {
|
|
|
public static final UiTheme DEFAULT_THEME = UiTheme.LIGHT;
|
|
|
public static final KeychainBackend DEFAULT_KEYCHAIN_BACKEND = SystemUtils.IS_OS_WINDOWS ? KeychainBackend.WIN_SYSTEM_KEYCHAIN : SystemUtils.IS_OS_MAC ? KeychainBackend.MAC_SYSTEM_KEYCHAIN : KeychainBackend.GNOME;
|
|
|
public static final NodeOrientation DEFAULT_USER_INTERFACE_ORIENTATION = NodeOrientation.LEFT_TO_RIGHT;
|
|
|
- private static final String DEFAULT_LICENSE_KEY = "";
|
|
|
+ public static final String DEFAULT_LICENSE_KEY = "";
|
|
|
+ public static final boolean DEFAULT_SHOW_MINIMIZE_BUTTON = false;
|
|
|
|
|
|
private final ObservableList<VaultSettings> directories = FXCollections.observableArrayList(VaultSettings::observables);
|
|
|
private final BooleanProperty askedForUpdateCheck = new SimpleBooleanProperty(DEFAULT_ASKED_FOR_UPDATE_CHECK);
|
|
@@ -55,6 +56,7 @@ public class Settings {
|
|
|
private final ObjectProperty<KeychainBackend> keychainBackend = new SimpleObjectProperty<>(DEFAULT_KEYCHAIN_BACKEND);
|
|
|
private final ObjectProperty<NodeOrientation> userInterfaceOrientation = new SimpleObjectProperty<>(DEFAULT_USER_INTERFACE_ORIENTATION);
|
|
|
private final StringProperty licenseKey = new SimpleStringProperty(DEFAULT_LICENSE_KEY);
|
|
|
+ private final BooleanProperty showMinimizeButton = new SimpleBooleanProperty(DEFAULT_SHOW_MINIMIZE_BUTTON);
|
|
|
private final BooleanProperty showTrayIcon;
|
|
|
|
|
|
private Consumer<Settings> saveCmd;
|
|
@@ -78,6 +80,7 @@ public class Settings {
|
|
|
keychainBackend.addListener(this::somethingChanged);
|
|
|
userInterfaceOrientation.addListener(this::somethingChanged);
|
|
|
licenseKey.addListener(this::somethingChanged);
|
|
|
+ showMinimizeButton.addListener(this::somethingChanged);
|
|
|
showTrayIcon.addListener(this::somethingChanged);
|
|
|
}
|
|
|
|
|
@@ -147,6 +150,10 @@ public class Settings {
|
|
|
return licenseKey;
|
|
|
}
|
|
|
|
|
|
+ public BooleanProperty showMinimizeButton() {
|
|
|
+ return showMinimizeButton;
|
|
|
+ }
|
|
|
+
|
|
|
public BooleanProperty showTrayIcon() {
|
|
|
return showTrayIcon;
|
|
|
}
|