fix: progress default spring option

This commit is contained in:
Florian Rey 2024-06-17 07:13:33 +02:00 committed by Christian Rocha
parent 0b15a9fad1
commit c3e07c9b36

View File

@ -187,13 +187,15 @@ func New(opts ...Option) Model {
PercentFormat: " %3.0f%%",
colorProfile: termenv.ColorProfile(),
}
if !m.springCustomized {
m.SetSpringOptions(defaultFrequency, defaultDamping)
}
for _, opt := range opts {
opt(&m)
}
if !m.springCustomized {
m.SetSpringOptions(defaultFrequency, defaultDamping)
}
return m
}