mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
Empty the list of new central repo hash sets when the settings are saved
This commit is contained in:
parent
4cf2c33f0f
commit
d44efea5b3
@ -303,7 +303,7 @@ public final class HashLookupSettingsPanel extends IngestModuleGlobalSettingsPan
|
||||
@Override
|
||||
@Messages({"HashLookupSettingsPanel.saveFail.message=Couldn't save hash db settings.",
|
||||
"HashLookupSettingsPanel.saveFail.title=Save Fail"})
|
||||
public void saveSettings() {
|
||||
public void saveSettings() {
|
||||
//Checking for for any unindexed databases
|
||||
List<HashDb> unindexed = new ArrayList<>();
|
||||
for (HashDatabase hashSet : hashSetManager.getAllHashDatabases()) {
|
||||
@ -325,8 +325,10 @@ public final class HashLookupSettingsPanel extends IngestModuleGlobalSettingsPan
|
||||
} else if (unindexed.size() > 1) {
|
||||
showInvalidIndex(true, unindexed);
|
||||
}
|
||||
|
||||
try {
|
||||
hashSetManager.save();
|
||||
newCentralRepoIndices.clear();
|
||||
} catch (HashDbManager.HashDbManagerException ex) {
|
||||
SwingUtilities.invokeLater(() -> {
|
||||
JOptionPane.showMessageDialog(null, Bundle.HashLookupSettingsPanel_saveFail_message(), Bundle.HashLookupSettingsPanel_saveFail_title(), JOptionPane.ERROR_MESSAGE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user