mirror of
https://github.com/charmbracelet/bubbles.git
synced 2026-07-22 11:39:28 -06:00
fix: progress default spring option
This commit is contained in:
parent
0b15a9fad1
commit
c3e07c9b36
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user