mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
Merge pull request #2783 from millmanorama/2625-disable-IG-button-during-AutoIngest
2625 disable the IG button if we are running without GUI
This commit is contained in:
commit
cb676349f8
@ -35,6 +35,7 @@ import org.openide.util.actions.Presenter;
|
||||
import org.openide.windows.WindowManager;
|
||||
import org.sleuthkit.autopsy.casemodule.Case;
|
||||
import org.sleuthkit.autopsy.core.Installer;
|
||||
import org.sleuthkit.autopsy.core.RuntimeProperties;
|
||||
import org.sleuthkit.autopsy.coreutils.Logger;
|
||||
import org.sleuthkit.autopsy.imagegallery.ImageGalleryController;
|
||||
import org.sleuthkit.autopsy.imagegallery.ImageGalleryModule;
|
||||
@ -64,7 +65,7 @@ public final class OpenAction extends CallableSystemAction implements Presenter.
|
||||
toolbarButton.addActionListener(actionEvent -> performAction());
|
||||
pcl = (PropertyChangeEvent evt) -> {
|
||||
if (evt.getPropertyName().equals(Case.Events.CURRENT_CASE.toString())) {
|
||||
setEnabled(evt.getNewValue() != null);
|
||||
setEnabled(RuntimeProperties.runningWithGUI() && evt.getNewValue() != null);
|
||||
}
|
||||
};
|
||||
Case.addPropertyChangeListener(pcl);
|
||||
|
Loading…
x
Reference in New Issue
Block a user