Skip to content

Commit

Permalink
minor slice capacity optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth authored Aug 10, 2024
1 parent fb99058 commit 7d8c70e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/visualizations/peakmeter.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (l *peakMeterRenderer) Refresh() {

func (l *peakMeterRenderer) Objects() []fyne.CanvasObject {
if l.objects == nil {
l.objects = make([]fyne.CanvasObject, 0, 6+len(l.rulerLines))
l.objects = make([]fyne.CanvasObject, 0, 8+len(l.rulerLines))
for i := range l.rulerLines {
l.objects = append(l.objects, &l.rulerLines[i], &l.rulerLabels[i])
}
Expand Down

0 comments on commit 7d8c70e

Please sign in to comment.