mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
persistence fix
This commit is contained in:
parent
e9cd619533
commit
3cabad12e6
@ -118,7 +118,12 @@ public class CTMalwareScannerOptionsPanel extends CTOptionsSubPanel {
|
||||
|
||||
@Override
|
||||
public synchronized void saveSettings() {
|
||||
ctPersistence.saveLicenseResponse(getLicenseInfo());
|
||||
LicenseResponse licenseResponse = getLicenseInfo();
|
||||
if (licenseResponse == null) {
|
||||
this.ctPersistence.deleteLicenseResponse();
|
||||
} else {
|
||||
ctPersistence.saveLicenseResponse(licenseResponse);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -514,9 +519,9 @@ public class CTMalwareScannerOptionsPanel extends CTOptionsSubPanel {
|
||||
}//GEN-LAST:event_purchaseLinkMouseClicked
|
||||
|
||||
private void licenseInfoRemoveButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_licenseInfoRemoveButtonActionPerformed
|
||||
this.ctPersistence.deleteLicenseResponse();
|
||||
setLicenseDisplay(null, null);
|
||||
setMalwareScansDisplay(null, null, null);
|
||||
this.firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
|
||||
}//GEN-LAST:event_licenseInfoRemoveButtonActionPerformed
|
||||
|
||||
@NbBundle.Messages({
|
||||
|
Loading…
x
Reference in New Issue
Block a user