mirror of
https://github.com/cryptomator/cryptomator.git
synced 2024-11-26 21:40:29 +00:00
set stage owner
This commit is contained in:
parent
00e1e3654e
commit
f9bfd5d1b1
@ -82,7 +82,8 @@ public class SupporterCertificateController implements FxController {
|
||||
|
||||
@FXML
|
||||
void didClickRemoveCert() {
|
||||
removeCert.build().showRemoveCert();
|
||||
Stage pref = (Stage) supporterCertificateField.getScene().getWindow();
|
||||
removeCert.build().showRemoveCert(pref);
|
||||
}
|
||||
|
||||
public LicenseHolder getLicenseHolder() {
|
||||
|
@ -18,10 +18,11 @@ public interface RemoveCertComponent {
|
||||
@FxmlScene(FxmlFile.REMOVE_CERT)
|
||||
Lazy<Scene> scene();
|
||||
|
||||
default void showRemoveCert() {
|
||||
default void showRemoveCert(Stage owner) {
|
||||
Stage stage = window();
|
||||
stage.setScene(scene().get());
|
||||
stage.sizeToScene();
|
||||
stage.initOwner(owner);
|
||||
stage.show();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user