From c52b3fc4addb4ca66c9c8a9d0fdd81f3763e1217 Mon Sep 17 00:00:00 2001 From: Sebastian Stenzel Date: Wed, 11 Mar 2026 22:01:14 +0100 Subject: [PATCH] change scene without lag --- .../ui/keyloading/hub/CheckHostTrustController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/cryptomator/ui/keyloading/hub/CheckHostTrustController.java b/src/main/java/org/cryptomator/ui/keyloading/hub/CheckHostTrustController.java index 4aee0338c..7792cb2ce 100644 --- a/src/main/java/org/cryptomator/ui/keyloading/hub/CheckHostTrustController.java +++ b/src/main/java/org/cryptomator/ui/keyloading/hub/CheckHostTrustController.java @@ -68,7 +68,7 @@ public class CheckHostTrustController implements FxController { public void initialize() { if (!isConsistentHubConfig()) { LOG.warn("Inconsistent hub config detected. Denying access to protect the user."); - Platform.runLater(this::deny); + deny(); } else if (isCryptomatorCloud()) { trust(); // trust *.cryptomator.cloud by default, domain is owned by Cryptomator maintainers } else if (containsAllowedHosts(env.hubAllowedHosts())) { @@ -81,7 +81,7 @@ public class CheckHostTrustController implements FxController { renderHostnames(); // ask user whether to trust these hosts } else { LOG.warn("Cryptomator is not allowed to connect to {}. Check your {} config.", getAuthority(hubConfig.getApiBaseUrl()), Environment.HUB_ALLOWED_HOSTS_PROP_NAME); - Platform.runLater(this::deny); + deny(); } }