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:
@@ -41,7 +41,7 @@ func diffHistory(seen map[string]string, slots []sabnzbd.HistorySlot, baseline b
|
||||
// watchDownloads polls SABnzbd's history until ctx ends and reports finished
|
||||
// and failed downloads as popups (and a bell, if enabled). Errors are not
|
||||
// reported here: the connection indicator and the log already do that.
|
||||
func (a *App) watchDownloads(ctx context.Context, sab *sabnzbd.Client, bell bool) {
|
||||
func (a *App) watchDownloads(ctx context.Context, sab *sabnzbd.Client) {
|
||||
seen := map[string]string{}
|
||||
baseline := true
|
||||
t := time.NewTicker(watchInterval)
|
||||
@@ -54,7 +54,7 @@ func (a *App) watchDownloads(ctx context.Context, sab *sabnzbd.Client, bell bool
|
||||
events := diffHistory(seen, slots, baseline)
|
||||
baseline = false
|
||||
if len(events) > 0 {
|
||||
a.post(func() { a.announce(events, bell) })
|
||||
a.post(func() { a.announce(events, a.bell) })
|
||||
}
|
||||
}
|
||||
select {
|
||||
|
||||
Reference in New Issue
Block a user