Disable feature for other platforms than Mac

This commit is contained in:
Ralph Plawetzki
2024-08-04 10:39:02 +02:00
parent 9cc863ae79
commit d8b798ff0f

View File

@@ -1,5 +1,6 @@
package org.cryptomator.ui.vaultoptions;
import org.apache.commons.lang3.SystemUtils;
import org.cryptomator.common.Passphrase;
import org.cryptomator.common.keychain.KeychainManager;
import org.cryptomator.common.vaults.Vault;
@@ -53,6 +54,9 @@ public class MasterkeyOptionsController implements FxController {
public void initialize() {
useTouchIDheckbox.selectedProperty().bindBidirectional(vault.getVaultSettings().useTouchID);
useTouchIDheckbox.selectedProperty().addListener(this::useTouchIDheckboxToggled);
if (!SystemUtils.IS_OS_MAC) {
useTouchIDheckbox.visibleProperty().set(false);
}
}
/**