no need to start ticker if mods are already loaded
This commit is contained in:
parent
4b30bffc79
commit
e383837477
1 changed files with 4 additions and 0 deletions
|
@ -277,6 +277,10 @@ func NewMods(root components.RootModel, parent tea.Model) tea.Model {
|
|||
}
|
||||
|
||||
func (m modsList) Init() tea.Cmd {
|
||||
if len(m.list.Items()) > 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
return utils.Ticker()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue