From 53c848e5ada8ea642d3a180bbd9e414c1efca6bc Mon Sep 17 00:00:00 2001
From: Mark McKinnon <Mark.McKinnon13@outlook.com>
Date: Tue, 22 Aug 2023 08:19:50 -0400
Subject: [PATCH] fixes

fixes
---
 .../ctoptions/ctcloud/CTMalwareScannerOptionsPanel.java  | 9 +++++++--
 .../cybertriage/autopsy/incidentoptions/CTSettings.java  | 3 ++-
 .../autopsy/incidentoptions/CTSettingsPersistence.java   | 3 ++-
 3 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/Core/src/com/basistech/df/cybertriage/autopsy/ctoptions/ctcloud/CTMalwareScannerOptionsPanel.java b/Core/src/com/basistech/df/cybertriage/autopsy/ctoptions/ctcloud/CTMalwareScannerOptionsPanel.java
index 8b9b169d67..375943188c 100644
--- a/Core/src/com/basistech/df/cybertriage/autopsy/ctoptions/ctcloud/CTMalwareScannerOptionsPanel.java
+++ b/Core/src/com/basistech/df/cybertriage/autopsy/ctoptions/ctcloud/CTMalwareScannerOptionsPanel.java
@@ -137,8 +137,8 @@ public synchronized void loadSettings() {
             this.purchaseFromLabel.setVisible(false);
             this.purchaseLink.setVisible(false);
         } else {
-            this.purchaseFromLabel.setVisible(false);
-            this.purchaseLink.setVisible(false);           
+            this.purchaseFromLabel.setVisible(true);
+            this.purchaseLink.setVisible(true);           
         }
     }
 
@@ -485,7 +485,12 @@ private synchronized void renderLicenseState() {
             this.licenseInfoExpiresLabel.setVisible(false);
             this.licenseInfoIdLabel.setVisible(false);
             this.licenseInfoUserLabel.setVisible(false);
+            this.purchaseFromLabel.setVisible(true);
+            this.purchaseLink.setVisible(true);           
         } else {
+            this.purchaseFromLabel.setVisible(false);
+            this.purchaseLink.setVisible(false);           
+
             this.licenseInfoExpiresLabel.setVisible(true);
             this.licenseInfoExpiresLabel.setText(Bundle.CTMalwareScannerOptionsPanel_licenseInfo_expires(
                     this.licenseInfo.getDecryptedLicense().getExpirationDate() == null
diff --git a/Core/src/com/basistech/df/cybertriage/autopsy/incidentoptions/CTSettings.java b/Core/src/com/basistech/df/cybertriage/autopsy/incidentoptions/CTSettings.java
index 4e9d4b4697..35e2d108ea 100644
--- a/Core/src/com/basistech/df/cybertriage/autopsy/incidentoptions/CTSettings.java
+++ b/Core/src/com/basistech/df/cybertriage/autopsy/incidentoptions/CTSettings.java
@@ -23,7 +23,8 @@
 import org.openide.modules.Places;
 
 /**
- * CT settings that don't include license information.
+ * CT settings that don't include license information. This code must be kept in-sync with code in
+ * CT Autopsy Importer NBM.
  */
 public class CTSettings {
 
diff --git a/Core/src/com/basistech/df/cybertriage/autopsy/incidentoptions/CTSettingsPersistence.java b/Core/src/com/basistech/df/cybertriage/autopsy/incidentoptions/CTSettingsPersistence.java
index d9addd1960..be60813edd 100644
--- a/Core/src/com/basistech/df/cybertriage/autopsy/incidentoptions/CTSettingsPersistence.java
+++ b/Core/src/com/basistech/df/cybertriage/autopsy/incidentoptions/CTSettingsPersistence.java
@@ -22,7 +22,8 @@
 import org.sleuthkit.autopsy.coreutils.PlatformUtil;
 
 /**
- * Handles persisting CT Settings.
+ * Handles persisting CT Settings. This code must be kept in-sync with code in
+ * CT Autopsy Importer NBM.
  */
 public class CTSettingsPersistence {
 
-- 
GitLab