changes mentioned by infeo

This commit is contained in:
Jan-Peter Klein 2024-09-24 16:14:52 +02:00
parent 1a39333b4c
commit 53c7e031a3
No known key found for this signature in database
GPG Key ID: 90EDA3A7C822FD0E
2 changed files with 6 additions and 5 deletions

View File

@ -23,6 +23,7 @@ public class SupporterCertificateController implements FxController {
private static final String SUPPORTER_URI = "https://store.cryptomator.org/desktop";
private final Application application;
private final Stage window;
private final LicenseHolder licenseHolder;
private final Settings settings;
private final RemoveCertComponent.Builder removeCert;
@ -31,8 +32,9 @@ public class SupporterCertificateController implements FxController {
private TextArea supporterCertificateField;
@Inject
SupporterCertificateController(Application application, LicenseHolder licenseHolder, Settings settings, RemoveCertComponent.Builder removeCert) {
SupporterCertificateController(Application application, @PreferencesWindow Stage window, LicenseHolder licenseHolder, Settings settings, RemoveCertComponent.Builder removeCert) {
this.application = application;
this.window = window;
this.licenseHolder = licenseHolder;
this.settings = settings;
this.removeCert = removeCert;
@ -82,8 +84,7 @@ public class SupporterCertificateController implements FxController {
@FXML
void didClickRemoveCert() {
Stage pref = (Stage) supporterCertificateField.getScene().getWindow();
removeCert.build().showRemoveCert(pref);
removeCert.build().showRemoveCert((Stage)window.getScene().getWindow());
}
public LicenseHolder getLicenseHolder() {

View File

@ -341,10 +341,10 @@ preferences.contribute.donate=Donate
preferences.contribute.sponsor=Sponsor
### Remove License Key Dialog
removeCert.title=Remove Cert
removeCert.title=Remove Certificate
removeCert.message=Remove supporter certificate?
removeCert.description=Even without a supporter certificate Cryptomator stays functional and neither restrict access to your vaults nor lowers its security.
removeCert.confirmBtn=Remove Cert
removeCert.confirmBtn=Remove
#<-- Add entries for donations and code/translation/documentation contribution -->
## About