mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 18:17:43 +00:00
disable slidehsow mode toggle when there are no files in group
This commit is contained in:
parent
00d9b24714
commit
ce4ff627fb
@ -221,6 +221,7 @@ public class GroupPane extends BorderPane implements GroupView {
|
|||||||
final String header = getHeaderString();
|
final String header = getHeaderString();
|
||||||
final List<Long> fileIds = getGrouping().fileIds();
|
final List<Long> fileIds = getGrouping().fileIds();
|
||||||
Platform.runLater(() -> {
|
Platform.runLater(() -> {
|
||||||
|
slideShowToggle.setDisable(fileIds.isEmpty());
|
||||||
gridView.getItems().setAll(fileIds);
|
gridView.getItems().setAll(fileIds);
|
||||||
groupLabel.setText(header);
|
groupLabel.setText(header);
|
||||||
});
|
});
|
||||||
@ -347,7 +348,6 @@ public class GroupPane extends BorderPane implements GroupView {
|
|||||||
HBox.setHgrow(spacer, Priority.ALWAYS);
|
HBox.setHgrow(spacer, Priority.ALWAYS);
|
||||||
spacer.setMinWidth(Region.USE_PREF_SIZE);
|
spacer.setMinWidth(Region.USE_PREF_SIZE);
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
grpTagSplitMenu.setText(TagUtils.getFollowUpTagName().getDisplayName());
|
grpTagSplitMenu.setText(TagUtils.getFollowUpTagName().getDisplayName());
|
||||||
grpTagSplitMenu.setOnAction(createGrpTagMenuItem(TagUtils.getFollowUpTagName()).getOnAction());
|
grpTagSplitMenu.setOnAction(createGrpTagMenuItem(TagUtils.getFollowUpTagName()).getOnAction());
|
||||||
@ -589,7 +589,6 @@ public class GroupPane extends BorderPane implements GroupView {
|
|||||||
gridView.getItems().setAll(Collections.emptyList());
|
gridView.getItems().setAll(Collections.emptyList());
|
||||||
Platform.runLater(() -> {
|
Platform.runLater(() -> {
|
||||||
setCenter(null);
|
setCenter(null);
|
||||||
|
|
||||||
groupLabel.setText("");
|
groupLabel.setText("");
|
||||||
resetScrollBar();
|
resetScrollBar();
|
||||||
if (false == Case.isCaseOpen()) {
|
if (false == Case.isCaseOpen()) {
|
||||||
@ -608,6 +607,7 @@ public class GroupPane extends BorderPane implements GroupView {
|
|||||||
|
|
||||||
gridView.getItems().setAll(getGrouping().fileIds());
|
gridView.getItems().setAll(getGrouping().fileIds());
|
||||||
Platform.runLater(() -> {
|
Platform.runLater(() -> {
|
||||||
|
slideShowToggle.setDisable(gridView.getItems().isEmpty());
|
||||||
groupLabel.setText(header);
|
groupLabel.setText(header);
|
||||||
resetScrollBar();
|
resetScrollBar();
|
||||||
if (viewState.getMode() == GroupViewMode.TILE) {
|
if (viewState.getMode() == GroupViewMode.TILE) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user