mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-18 02:31:27 +00:00
Fixes #3249 Bound the UIs disabled state to the vault's lock state without the need of a map
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package org.cryptomator.ui.vaultoptions;
|
||||
|
||||
import org.cryptomator.common.vaults.Vault;
|
||||
import org.cryptomator.common.vaults.VaultState;
|
||||
import org.cryptomator.ui.common.FxController;
|
||||
import org.cryptomator.ui.keyloading.hub.HubKeyLoadingStrategy;
|
||||
import org.cryptomator.ui.keyloading.masterkeyfile.MasterkeyFileLoadingStrategy;
|
||||
@@ -48,6 +49,10 @@ public class VaultOptionsController implements FxController {
|
||||
if(!(vaultScheme.equals(HubKeyLoadingStrategy.SCHEME_HUB_HTTP) || vaultScheme.equals(HubKeyLoadingStrategy.SCHEME_HUB_HTTPS))){
|
||||
tabPane.getTabs().remove(hubTab);
|
||||
}
|
||||
|
||||
vault.stateProperty().addListener(observable -> {
|
||||
tabPane.setDisable(vault.getState().equals(VaultState.Value.UNLOCKED));
|
||||
});
|
||||
}
|
||||
|
||||
private void selectChosenTab() {
|
||||
|
||||
Reference in New Issue
Block a user