always cancle unlock result when closing the unlock window

This commit is contained in:
Armin Schrenk
2023-11-17 15:47:30 +01:00
parent 1199ef40dd
commit de27bbf96e
2 changed files with 1 additions and 1 deletions

View File

@@ -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;

View File

@@ -193,7 +193,6 @@ public class RegisterDeviceController implements FxController {
}
registerException.set(cause);
window.setScene(registerFailedScene.get());
result.completeExceptionally(cause);
}
}
}