mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 18:17:43 +00:00
Merge pull request #1350 from millmanorama/slideshowview_npe
disable slidehsow mode toggle when there are no files in group
This commit is contained in:
commit
510ddf81ae
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user