Skip to content

Commit

Permalink
NextCollection button shows after dialog is hidden.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denz1994 committed Jan 9, 2020
1 parent 2b07d22 commit 0f875c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion js/common/view/BAMScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ define( require => {
kit.addedMoleculeEmitter.addListener( addedEmitterListener );
this.addedEmitterListeners[ kit.id ] = addedEmitterListener;

// Handle deleting metatdataLayer
// Handle deleting metadataLayer
const removedEmitterListener = molecule => {
removedMoleculeListener( molecule, kit );
};
Expand Down
5 changes: 5 additions & 0 deletions js/common/view/MoleculeCollectingScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ define( require => {
this.nextCollectionButton.dispose();
} );
this.addChild( this.nextCollectionButton );

// Show the next collection button after the dialog has been disposed
this.allFilledNode.isShowingProperty.lazyLink( isShowing => {
this.nextCollectionButton.visible = !isShowing;
} );
this.allFilledNode.show();
hasShownOnce = true;
}
Expand Down

0 comments on commit 0f875c9

Please sign in to comment.