First start: create the config file and open the Config view
Without a config file arr-tui refused to start. It now creates an empty one (private, with its directory) and opens the Config view. A service with neither address nor key is "not configured", which validation allows: its client returns ErrNotConfigured without a request, its indicator stays grey, it is logged once as information, and its lists say so instead of showing errors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019reK4DUGYqDUjniWYJvwUW
This commit is contained in:
@@ -294,12 +294,14 @@ func (v *calendarView) reload() {
|
||||
if gen != v.gen {
|
||||
return
|
||||
}
|
||||
// A service that is not set up just contributes nothing.
|
||||
usable := func(err error) bool { return err == nil || notConfigured(err) }
|
||||
for _, err := range []error{movieErr, tvErr} {
|
||||
if err != nil {
|
||||
if !usable(err) {
|
||||
v.app.SetMessage("[red]Calendar: " + tview.Escape(err.Error()))
|
||||
}
|
||||
}
|
||||
if movieErr == nil || tvErr == nil { // show what we got
|
||||
if usable(movieErr) || usable(tvErr) { // show what we got
|
||||
v.entries, v.loaded = entries, true
|
||||
}
|
||||
v.render()
|
||||
|
||||
Reference in New Issue
Block a user