Add the Config view: edit and save the settings, applied without a restart

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-20 23:31:13 +02:00
co-authored by Claude Sonnet 5.5
parent 0ccd02b3c5
commit a4ec9ad71e
25 changed files with 1168 additions and 54 deletions
+8
View File
@@ -134,6 +134,14 @@ func (v *downloadsView) nextPanel(dir int) {
v.app.app.SetFocus(v.panels[0])
}
// setInterval changes the polling interval, also while polling.
func (v *downloadsView) setInterval(d time.Duration) {
v.interval = d
if v.cancel != nil {
v.activate()
}
}
// activate starts polling; called when the view becomes visible.
func (v *downloadsView) activate() {
v.deactivate()