Skip to content

Commit

Permalink
update to core rename of ShouldShow to ShouldDisplay
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Jul 9, 2024
1 parent 4686840 commit 52b96a2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions paths/pooltile.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ func (gt *GaussTopo) Defaults() {
gt.CtrMove = 1
}

func (gt *GaussTopo) ShouldShow(field string) bool {
func (gt *GaussTopo) ShouldDisplay(field string) bool {
switch field {
case "On":
return true
Expand Down Expand Up @@ -503,7 +503,7 @@ func (gt *SigmoidTopo) Defaults() {
gt.CtrMove = 0.5
}

func (gt *SigmoidTopo) ShouldShow(field string) bool {
func (gt *SigmoidTopo) ShouldDisplay(field string) bool {
switch field {
case "On":
return true
Expand Down
2 changes: 1 addition & 1 deletion popcode/popcode1d.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (pc *OneD) Defaults() {
pc.MinSum = 0.2
}

func (pc *OneD) ShouldShow(field string) bool {
func (pc *OneD) ShouldDisplay(field string) bool {
switch field {
case "Sigma":
return pc.Code == GaussBump
Expand Down
2 changes: 1 addition & 1 deletion popcode/popcode2d.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (pc *TwoD) Defaults() {
pc.MinSum = 0.2
}

func (pc *TwoD) ShouldShow(field string) bool {
func (pc *TwoD) ShouldDisplay(field string) bool {
switch field {
case "Sigma":
return pc.Code == GaussBump
Expand Down
2 changes: 1 addition & 1 deletion relpos/rel.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (rp *Rel) Defaults() {
}
}

func (rp *Rel) ShouldShow(field string) bool {
func (rp *Rel) ShouldDisplay(field string) bool {
switch field {
case "XAlign":
return rp.Rel == FrontOf || rp.Rel == Behind || rp.Rel == Above || rp.Rel == Below
Expand Down

0 comments on commit 52b96a2

Please sign in to comment.