mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-17 02:01:27 +00:00
Improve thread handling
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
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;
|
||||
@@ -64,7 +63,7 @@ public class MasterkeyOptionsController implements FxController {
|
||||
* @param wasSet
|
||||
* @param isSet <code>true</code>, when the checkbox is ticked, <code>false</code> otherwise
|
||||
*/
|
||||
private void needAuthenticatedUserCheckboxToggled(Observable observable, Boolean wasSet, Boolean isSet) {
|
||||
public synchronized void needAuthenticatedUserCheckboxToggled(Observable observable, Boolean wasSet, Boolean isSet) {
|
||||
try {
|
||||
var vaultId = vault.getId();
|
||||
if (keychain.isPassphraseStored(vaultId)) {
|
||||
|
||||
Reference in New Issue
Block a user