Skip to content

Commit 4479bfb

Browse files
committed
feat: trigger automatic background git status and updates check every 15s
1 parent b1eb16e commit 4479bfb

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

go/tui/tui.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,11 @@ func (m TuiModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
320320
}
321321
}
322322

323+
if m.tickCount%100 == 0 && !m.loading && !m.taskActive && !m.checkingUpdates {
324+
m.checkingUpdates = true
325+
return m, tea.Batch(tickCmd(), m.checkForUpdatesCmd())
326+
}
327+
323328
return m, tickCmd()
324329

325330
case tea.KeyMsg:

0 commit comments

Comments
 (0)