mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-08-19 13:46:04 +00: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.window = window;
|
||||||
this.keychainManager = keychainManager;
|
this.keychainManager = keychainManager;
|
||||||
window.setTitle(windowTitle);
|
window.setTitle(windowTitle);
|
||||||
|
window.setOnCloseRequest(_ -> result.cancel(true));
|
||||||
this.authFlowScene = authFlowScene;
|
this.authFlowScene = authFlowScene;
|
||||||
this.noKeychainScene = noKeychainScene;
|
this.noKeychainScene = noKeychainScene;
|
||||||
this.result = result;
|
this.result = result;
|
||||||
|
|||||||
@@ -193,7 +193,6 @@ public class RegisterDeviceController implements FxController {
|
|||||||
}
|
}
|
||||||
registerException.set(cause);
|
registerException.set(cause);
|
||||||
window.setScene(registerFailedScene.get());
|
window.setScene(registerFailedScene.get());
|
||||||
result.completeExceptionally(cause);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user