mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-08-17 20:56:02 +00:00
cr mentioned changes
This commit is contained in:
@@ -43,7 +43,11 @@ public class SupporterCertificateController implements FxController {
|
||||
supporterCertificateField.setText(licenseHolder.getLicenseKey().orElse(null));
|
||||
supporterCertificateField.textProperty().addListener(this::registrationKeyChanged);
|
||||
supporterCertificateField.setTextFormatter(new TextFormatter<>(this::removeWhitespaces));
|
||||
settings.licenseKey.addListener(this::licenseKeySettingsChanged);
|
||||
settings.licenseKey.addListener((_, _, newValue) -> {
|
||||
if (newValue == null) {
|
||||
supporterCertificateField.setText(null);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private TextFormatter.Change removeWhitespaces(TextFormatter.Change change) {
|
||||
@@ -54,11 +58,6 @@ public class SupporterCertificateController implements FxController {
|
||||
return change;
|
||||
}
|
||||
|
||||
private void licenseKeySettingsChanged(@SuppressWarnings("unused") ObservableValue<? extends String> observable, @SuppressWarnings("unused") String oldValue, String newValue){
|
||||
if(newValue == null)
|
||||
supporterCertificateField.setText(null);
|
||||
}
|
||||
|
||||
private void registrationKeyChanged(@SuppressWarnings("unused") ObservableValue<? extends String> observable, @SuppressWarnings("unused") String oldValue, String newValue) {
|
||||
licenseHolder.validateAndStoreLicense(newValue);
|
||||
if (!licenseHolder.isValidLicense()) {
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
<FontAwesome5IconView glyph="DONATE"/>
|
||||
</graphic>
|
||||
</Button>
|
||||
<Button text="%preferences.contribute.sponsors" minWidth="100" onAction="#showSponsors">
|
||||
<Button text="%preferences.contribute.sponsor" minWidth="100" onAction="#showSponsors">
|
||||
<graphic>
|
||||
<FontAwesome5IconView glyph="SPONSORS"/>
|
||||
</graphic>
|
||||
|
||||
@@ -338,12 +338,12 @@ preferences.contribute.getCertificate=Don't have one already? Learn how you can
|
||||
preferences.contribute.promptText=Paste supporter certificate code here
|
||||
preferences.contribute.thankYou=Thank you for supporting Cryptomator’s open-source development!
|
||||
preferences.contribute.donate=Donate
|
||||
preferences.contribute.sponsors=Sponsors
|
||||
preferences.contribute.sponsor=Sponsor
|
||||
|
||||
### Remove License Key Dialog
|
||||
removeCert.title=Remove Cert
|
||||
removeCert.message=Remove supporter certificate?
|
||||
removeCert.description=Are you sure you want to remove the 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
|
||||
#<-- Add entries for donations and code/translation/documentation contribution -->
|
||||
|
||||
|
||||
Reference in New Issue
Block a user