Skip to content

Commit

Permalink
quick-and-dirty fleshing out of EnergyLevelsScreenView, lots of copy-…
Browse files Browse the repository at this point in the history
…paste duplication
  • Loading branch information
pixelzoom committed Nov 3, 2024
1 parent 35a82e2 commit e571c38
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions js/energylevels/view/EnergyLevelsScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ export default class EnergyLevelsScreenView extends ScreenView {
phetioReadOnly: true // because the sim controls this
} );

//TODO Not relevant in Energy Levels screen, but was copied here from SpectraScreenView as part of brute-force fleshing out.
// Hide the dialog when a classical model is being viewed.
model.isQuantumModelProperty.link( isQuantumModel => {
if ( absorptionEmissionDialogVisibleProperty.value ) {
absorptionEmissionDialogVisibleProperty.value = isQuantumModel;
}
} );

const absorptionEmissionCheckbox = new AbsorptionEmissionCheckbox( absorptionEmissionDialogVisibleProperty,
model.isQuantumModelProperty, {
tandem: tandem.createTandem( 'absorptionEmissionCheckbox' )
Expand Down

1 comment on commit e571c38

@pixelzoom
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#67

Please sign in to comment.