Explorar el Código

hide count if vault is locked

Armin Schrenk hace 1 mes
padre
commit
f0a7379575

+ 8 - 0
src/main/java/org/cryptomator/ui/eventview/EventListCellController.java

@@ -312,4 +312,12 @@ public class EventListCellController implements FxController {
 	public String getEventLocalDate() {
 		return readableDate.getValue();
 	}
+
+	public ObservableValue<Boolean> vaultUnlockedProperty() {
+		return vaultUnlocked;
+	}
+
+	public boolean isVaultUnlocked() {
+		return vaultUnlocked.getValue();
+	}
 }

+ 1 - 1
src/main/resources/fxml/eventview_cell.fxml

@@ -25,7 +25,7 @@
 	<VBox spacing="4" HBox.hgrow="ALWAYS">
 		<HBox spacing="4">
 			<Label styleClass="header-label" text="${controller.message}"/>
-			<Label styleClass="header-misc" text="${controller.count}"/>
+			<Label styleClass="header-misc" text="${controller.count}" visible="${controller.vaultUnlocked}"/>
 		</HBox>
 		<Label text="${controller.description}"/>
 	</VBox>