mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
7587 ensure directory tree top component is constructed even when case does not have contents yet
This commit is contained in:
parent
8cef408da5
commit
dad08311af
@ -116,6 +116,7 @@ import org.sleuthkit.autopsy.coreutils.ThreadUtils;
|
||||
import org.sleuthkit.autopsy.coreutils.TimeZoneUtils;
|
||||
import org.sleuthkit.autopsy.coreutils.Version;
|
||||
import org.sleuthkit.autopsy.datamodel.hosts.OpenHostsAction;
|
||||
import org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent;
|
||||
import org.sleuthkit.autopsy.events.AutopsyEvent;
|
||||
import org.sleuthkit.autopsy.events.AutopsyEventException;
|
||||
import org.sleuthkit.autopsy.events.AutopsyEventPublisher;
|
||||
@ -1287,6 +1288,9 @@ public class Case {
|
||||
*/
|
||||
if (newCurrentCase.hasData()) {
|
||||
CoreComponentControl.openCoreWindows();
|
||||
} else {
|
||||
//ensure that the DirectoryTreeTopComponent is open so that it's listener can open the core windows including making it visible.
|
||||
DirectoryTreeTopComponent.findInstance();
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -84,8 +84,10 @@ public final class CasePreferences {
|
||||
*/
|
||||
public static void setGroupItemsInTreeByDataSource(boolean value) {
|
||||
groupItemsInTreeByDataSource = value;
|
||||
if (Case.isCaseOpen()) {
|
||||
DirectoryTreeTopComponent.getDefault().refreshContentTreeSafe();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Load case preferences from the settings file.
|
||||
|
Loading…
x
Reference in New Issue
Block a user