|
@@ -4,6 +4,7 @@ import javafx.beans.property.ReadOnlyStringProperty;
|
|
|
import javafx.beans.property.StringProperty;
|
|
|
import javafx.fxml.FXML;
|
|
|
import javafx.stage.Stage;
|
|
|
+import org.cryptomator.common.vaults.Vault;
|
|
|
import org.cryptomator.ui.common.FxController;
|
|
|
|
|
|
import javax.inject.Inject;
|
|
@@ -12,11 +13,13 @@ import javax.inject.Inject;
|
|
|
public class RecoveryKeyDisplayController implements FxController {
|
|
|
|
|
|
private final Stage window;
|
|
|
+ private final Vault vault;
|
|
|
private final StringProperty recoveryKeyProperty;
|
|
|
|
|
|
@Inject
|
|
|
- public RecoveryKeyDisplayController(@RecoveryKeyWindow Stage window, @RecoveryKeyWindow StringProperty recoveryKey) {
|
|
|
+ public RecoveryKeyDisplayController(@RecoveryKeyWindow Stage window, @RecoveryKeyWindow Vault vault, @RecoveryKeyWindow StringProperty recoveryKey) {
|
|
|
this.window = window;
|
|
|
+ this.vault = vault;
|
|
|
this.recoveryKeyProperty = recoveryKey;
|
|
|
}
|
|
|
|
|
@@ -27,6 +30,10 @@ public class RecoveryKeyDisplayController implements FxController {
|
|
|
|
|
|
/* Getter/Setter */
|
|
|
|
|
|
+ public Vault getVault() {
|
|
|
+ return vault;
|
|
|
+ }
|
|
|
+
|
|
|
public ReadOnlyStringProperty recoveryKeyProperty() {
|
|
|
return recoveryKeyProperty;
|
|
|
}
|