Browse Source

Fix wrong debug message

Armin Schrenk 3 years ago
parent
commit
1f0c12ef7a

+ 5 - 2
src/main/java/org/cryptomator/ui/keyloading/masterkeyfile/PassphraseEntryController.java

@@ -129,8 +129,11 @@ public class PassphraseEntryController implements FxController {
 	}
 
 	private void windowClosed(WindowEvent windowEvent) {
-		LOG.debug("Unlock canceled by user.");
-		result.cancel(true);
+		if(!result.isDone()) {
+			result.cancel(true);
+			LOG.debug("Unlock canceled by user.");
+		}
+
 	}
 
 	@FXML