mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 01:07:42 +00:00
2355 Adjusted comments in IngestOptionsPanel to come before what they refer to
This commit is contained in:
parent
a9a9ae24fa
commit
d61042a6a4
@ -80,11 +80,10 @@ public class IngestOptionsPanel extends IngestModuleGlobalSettingsPanel implemen
|
|||||||
@Override
|
@Override
|
||||||
public void stateChanged(ChangeEvent e) {
|
public void stateChanged(ChangeEvent e) {
|
||||||
if (e.getSource() instanceof JTabbedPane) {
|
if (e.getSource() instanceof JTabbedPane) {
|
||||||
|
|
||||||
if (tabbedPane.getSelectedIndex() == INDEX_OF_FILTER_PANEL && tabbedPane.getSelectedIndex() != indexOfPreviousTab) {
|
|
||||||
//If we are switching to a filter panel we should load
|
//If we are switching to a filter panel we should load
|
||||||
//load the filter panel to ensure it is up to date
|
//load the filter panel to ensure it is up to date
|
||||||
//incase a filter was addded through the Profile->new->create new filter manner
|
//incase a filter was addded through the Profile->new->create new filter manner
|
||||||
|
if (tabbedPane.getSelectedIndex() == INDEX_OF_FILTER_PANEL && tabbedPane.getSelectedIndex() != indexOfPreviousTab) {
|
||||||
filterPanel.load();
|
filterPanel.load();
|
||||||
}
|
}
|
||||||
//save the contents of whichever Tab we just switched from
|
//save the contents of whichever Tab we just switched from
|
||||||
@ -167,6 +166,11 @@ public class IngestOptionsPanel extends IngestModuleGlobalSettingsPanel implemen
|
|||||||
saveTabByIndex(tabbedPane.getSelectedIndex());
|
saveTabByIndex(tabbedPane.getSelectedIndex());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Save the panel which is in the tab corresponding to the specified index.
|
||||||
|
*
|
||||||
|
* @param index - the index of the tab you wish to save the contents of
|
||||||
|
*/
|
||||||
private void saveTabByIndex(int index) {
|
private void saveTabByIndex(int index) {
|
||||||
//Because we can create filters in two seperate windows here we need
|
//Because we can create filters in two seperate windows here we need
|
||||||
//to be careful not to save an out of date list over the current list
|
//to be careful not to save an out of date list over the current list
|
||||||
|
Loading…
x
Reference in New Issue
Block a user