1
0
mirror of https://github.com/elisspace/autopsy.git synced 2026-09-06 02:24:30 +00:00

disable slidehsow mode toggle when there are no files in group

This commit is contained in:
jmillman
2015-06-11 16:02:49 -04:00
parent 00d9b24714
commit ce4ff627fb

View File

@@ -221,6 +221,7 @@ public class GroupPane extends BorderPane implements GroupView {
final String header = getHeaderString();
final List<Long> fileIds = getGrouping().fileIds();
Platform.runLater(() -> {
slideShowToggle.setDisable(fileIds.isEmpty());
gridView.getItems().setAll(fileIds);
groupLabel.setText(header);
});
@@ -347,7 +348,6 @@ public class GroupPane extends BorderPane implements GroupView {
HBox.setHgrow(spacer, Priority.ALWAYS);
spacer.setMinWidth(Region.USE_PREF_SIZE);
try {
grpTagSplitMenu.setText(TagUtils.getFollowUpTagName().getDisplayName());
grpTagSplitMenu.setOnAction(createGrpTagMenuItem(TagUtils.getFollowUpTagName()).getOnAction());
@@ -589,7 +589,6 @@ public class GroupPane extends BorderPane implements GroupView {
gridView.getItems().setAll(Collections.emptyList());
Platform.runLater(() -> {
setCenter(null);
groupLabel.setText("");
resetScrollBar();
if (false == Case.isCaseOpen()) {
@@ -608,6 +607,7 @@ public class GroupPane extends BorderPane implements GroupView {
gridView.getItems().setAll(getGrouping().fileIds());
Platform.runLater(() -> {
slideShowToggle.setDisable(gridView.getItems().isEmpty());
groupLabel.setText(header);
resetScrollBar();
if (viewState.getMode() == GroupViewMode.TILE) {