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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user