mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 09:17:42 +00:00
Bug fix related to storing/loading of 'join cluster' setting
This commit is contained in:
parent
fed26be6a1
commit
faede6f761
@ -120,6 +120,7 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
} else {
|
||||
tbOops.setText("");
|
||||
}
|
||||
cbJoinAutoIngestCluster.setSelected(AutoIngestUserPreferences.getJoinAutoModeCluster());
|
||||
cbJoinAutoIngestCluster.setEnabled(UserPreferences.getIsMultiUserModeEnabled());
|
||||
//enableUI(UserPreferences.getIsMultiUserModeEnabled());
|
||||
|
||||
@ -204,6 +205,7 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
* Save mode to persistent storage.
|
||||
*/
|
||||
void store() {
|
||||
AutoIngestUserPreferences.setJoinAutoModeCluster(cbJoinAutoIngestCluster.isSelected());
|
||||
if (!cbJoinAutoIngestCluster.isSelected()) {
|
||||
AutoIngestUserPreferences.setMode(AutoIngestUserPreferences.SelectedMode.STANDALONE);
|
||||
return;
|
||||
|
@ -40,6 +40,7 @@ public final class AutoIngestUserPreferences {
|
||||
|
||||
private static final Preferences preferences = NbPreferences.forModule(AutoIngestUserPreferences.class);
|
||||
private static final String MODE = "AutopsyMode"; // NON-NLS
|
||||
private static final String JOIN_AUTO_MODE_CLUSTER = "JoinAutoModeCluster"; // NON-NLS
|
||||
private static final String AUTO_MODE_IMAGES_FOLDER = "AutoModeImageFolder"; // NON-NLS
|
||||
private static final String AUTO_MODE_RESULTS_FOLDER = "AutoModeResultsFolder"; // NON-NLS
|
||||
private static final String SHARED_CONFIG_FOLDER = "SharedSettingsFolder"; // NON-NLS
|
||||
@ -113,6 +114,24 @@ public final class AutoIngestUserPreferences {
|
||||
preferences.putInt(MODE, mode.ordinal());
|
||||
}
|
||||
|
||||
/**
|
||||
* Get "Join Automated Ingest Cluster" setting from persistent storage.
|
||||
*
|
||||
* @return SelectedMode Selected setting.
|
||||
*/
|
||||
public static boolean getJoinAutoModeCluster() {
|
||||
return preferences.getBoolean(JOIN_AUTO_MODE_CLUSTER, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set "Join Automated Ingest Cluster" setting to persistent storage.
|
||||
*
|
||||
* @param join boolean value of whether to join auto ingest cluster or not
|
||||
*/
|
||||
public static void setJoinAutoModeCluster(boolean join) {
|
||||
preferences.putBoolean(JOIN_AUTO_MODE_CLUSTER, join);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get input folder for automated mode from persistent storage.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user