mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-19 11:07:43 +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
|
@Override
|
||||||
@Messages({"HashLookupSettingsPanel.saveFail.message=Couldn't save hash db settings.",
|
@Messages({"HashLookupSettingsPanel.saveFail.message=Couldn't save hash db settings.",
|
||||||
"HashLookupSettingsPanel.saveFail.title=Save Fail"})
|
"HashLookupSettingsPanel.saveFail.title=Save Fail"})
|
||||||
public void saveSettings() {
|
public void saveSettings() {
|
||||||
//Checking for for any unindexed databases
|
//Checking for for any unindexed databases
|
||||||
List<HashDb> unindexed = new ArrayList<>();
|
List<HashDb> unindexed = new ArrayList<>();
|
||||||
for (HashDatabase hashSet : hashSetManager.getAllHashDatabases()) {
|
for (HashDatabase hashSet : hashSetManager.getAllHashDatabases()) {
|
||||||
@ -325,8 +325,10 @@ public final class HashLookupSettingsPanel extends IngestModuleGlobalSettingsPan
|
|||||||
} else if (unindexed.size() > 1) {
|
} else if (unindexed.size() > 1) {
|
||||||
showInvalidIndex(true, unindexed);
|
showInvalidIndex(true, unindexed);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
hashSetManager.save();
|
hashSetManager.save();
|
||||||
|
newCentralRepoIndices.clear();
|
||||||
} catch (HashDbManager.HashDbManagerException ex) {
|
} catch (HashDbManager.HashDbManagerException ex) {
|
||||||
SwingUtilities.invokeLater(() -> {
|
SwingUtilities.invokeLater(() -> {
|
||||||
JOptionPane.showMessageDialog(null, Bundle.HashLookupSettingsPanel_saveFail_message(), Bundle.HashLookupSettingsPanel_saveFail_title(), JOptionPane.ERROR_MESSAGE);
|
JOptionPane.showMessageDialog(null, Bundle.HashLookupSettingsPanel_saveFail_message(), Bundle.HashLookupSettingsPanel_saveFail_title(), JOptionPane.ERROR_MESSAGE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user