no need to start ticker if mods are already loaded

This commit is contained in:
Vilsol 2022-06-07 03:32:46 +03:00
parent 4b30bffc79
commit e383837477

View file

@ -277,6 +277,10 @@ func NewMods(root components.RootModel, parent tea.Model) tea.Model {
} }
func (m modsList) Init() tea.Cmd { func (m modsList) Init() tea.Cmd {
if len(m.list.Items()) > 0 {
return nil
}
return utils.Ticker() return utils.Ticker()
} }