|
@@ -13,7 +13,9 @@ import javafx.beans.Observable;
|
|
|
import javafx.beans.binding.Bindings;
|
|
|
import javafx.beans.binding.BooleanBinding;
|
|
|
import javafx.beans.binding.StringBinding;
|
|
|
+import javafx.beans.property.BooleanProperty;
|
|
|
import javafx.beans.property.ObjectProperty;
|
|
|
+import javafx.beans.property.SimpleBooleanProperty;
|
|
|
import org.apache.commons.lang3.SystemUtils;
|
|
|
import org.cryptomator.common.LazyInitializer;
|
|
|
import org.cryptomator.common.settings.VaultSettings;
|
|
@@ -66,6 +68,7 @@ public class Vault {
|
|
|
private final BooleanBinding unknownError;
|
|
|
private final StringBinding accessPoint;
|
|
|
private final BooleanBinding accessPointPresent;
|
|
|
+ private final BooleanProperty showingStats;
|
|
|
|
|
|
private volatile Volume volume;
|
|
|
|
|
@@ -88,6 +91,7 @@ public class Vault {
|
|
|
this.unknownError = Bindings.createBooleanBinding(this::isUnknownError, state);
|
|
|
this.accessPoint = Bindings.createStringBinding(this::getAccessPoint, state);
|
|
|
this.accessPointPresent = this.accessPoint.isNotEmpty();
|
|
|
+ this.showingStats = new SimpleBooleanProperty(false);
|
|
|
}
|
|
|
|
|
|
// ******************************************************************************
|
|
@@ -270,6 +274,15 @@ public class Vault {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public BooleanProperty showingStatsProperty() {
|
|
|
+ return showingStats;
|
|
|
+ }
|
|
|
+
|
|
|
+ public boolean isShowingStats() {
|
|
|
+ return accessPointPresent.get();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
// ******************************************************************************
|
|
|
// Getter/Setter
|
|
|
// *******************************************************************************/
|