mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 07:56:16 +00:00
Changed code so that a call to generate a timeline while ingest is occurring
is handled properly.
This commit is contained in:
parent
3afe4a0a79
commit
09a42c4a8e
@ -955,12 +955,19 @@ public class Simile2 extends CallableSystemAction implements Presenter.Toolbar,
|
|||||||
try {
|
try {
|
||||||
if (Case.getCurrentCase().getImages().isEmpty()) {
|
if (Case.getCurrentCase().getImages().isEmpty()) {
|
||||||
logger.log(Level.INFO, "Error creating timeline, there are no images to parse");
|
logger.log(Level.INFO, "Error creating timeline, there are no images to parse");
|
||||||
} else if (IngestManager.getDefault().isIngestRunning()) {
|
|
||||||
int i = JOptionPane.showConfirmDialog(new JFrame(), "You are trying to generate a timeline before ingest has been completed. The timeline may be incomplete. Do you want to continue?");
|
|
||||||
if (i != JOptionPane.YES_OPTION) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
if (IngestManager.getDefault().isIngestRunning()) {
|
||||||
|
int answer = JOptionPane.showConfirmDialog(new JFrame(),
|
||||||
|
"You are trying to generate a timeline before "
|
||||||
|
+ "ingest has been completed. The timeline may be "
|
||||||
|
+ "incomplete. Do you want to continue?", "Timeline",
|
||||||
|
JOptionPane.YES_NO_OPTION);
|
||||||
|
if (answer != JOptionPane.YES_OPTION) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
logger.log(Level.INFO, "Beginning generation of timeline");
|
logger.log(Level.INFO, "Beginning generation of timeline");
|
||||||
|
|
||||||
// if the timeline window is already open, do nothing
|
// if the timeline window is already open, do nothing
|
||||||
|
Loading…
x
Reference in New Issue
Block a user