Skip to content

Commit

Permalink
Bug fix for composite snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
georgweiss committed Jan 17, 2024
1 parent e1bf80c commit cd51e68
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ public void nodeDoubleClicked(Node node) {
TreeItem<Node> treeItem = browserSelectionModel.getSelectedItems().get(0);
tab = new SnapshotTab(treeItem.getValue(), saveAndRestoreService);
((SnapshotTab) tab).loadSnapshot(treeItem.getValue());
return;
break;
case FOLDER:
default:
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,12 +346,7 @@ public void loadSnapshot(Node snapshotNode) {
snapshotControlsViewController.setSnapshotRestorableProperty(true);
snapshotTableViewController.setSelectionColumnVisible(true);

if (snapshotNode.getNodeType().equals(NodeType.SNAPSHOT)) {
loadSnapshotInternal(snapshotNode);
} else {
snapshotControlsViewController.setNameAndCommentDisabled(true);
loadSnapshotInternal(snapshotNode);
}
loadSnapshotInternal(snapshotNode);
}

public void restore(ActionEvent actionEvent) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,6 @@ public SimpleBooleanProperty getSnapshotRestorableProperty() {
return snapshotRestorableProperty;
}

public void setNameAndCommentDisabled(boolean disabled) {
snapshotName.disableProperty().set(disabled);
snapshotComment.disableProperty().set(disabled);
}

public void setSnapshotNode(Node node) {
snapshotNodeProperty.set(node);
}
Expand Down

0 comments on commit cd51e68

Please sign in to comment.