mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-10 23:18:34 +00:00
fix: progress default spring option
This commit is contained in:
committed by
Christian Rocha
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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user