mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-04-18 08:36:52 -04:00
always cancle unlock result when closing the unlock window
This commit is contained in:
@@ -44,6 +44,7 @@ public class HubKeyLoadingStrategy implements KeyLoadingStrategy {
|
||||
this.window = window;
|
||||
this.keychainManager = keychainManager;
|
||||
window.setTitle(windowTitle);
|
||||
window.setOnCloseRequest(_ -> result.cancel(true));
|
||||
this.authFlowScene = authFlowScene;
|
||||
this.noKeychainScene = noKeychainScene;
|
||||
this.result = result;
|
||||
|
||||
@@ -193,7 +193,6 @@ public class RegisterDeviceController implements FxController {
|
||||
}
|
||||
registerException.set(cause);
|
||||
window.setScene(registerFailedScene.get());
|
||||
result.completeExceptionally(cause);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user