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
+5 -3
View File
@@ -27,8 +27,9 @@ type detailPane struct {
cover *coverView
detail detailText
want string // key of the poster that should be shown
hasCover bool // a poster (or its loading note) is part of the content
lastRef coverRef // the poster of the current detail, to fetch it again after a style change
want string // key of the poster that should be shown
hasCover bool // a poster (or its loading note) is part of the content
// What the text was last wrapped for.
laidOut struct {
@@ -47,12 +48,13 @@ func newDetailPane(app *App) *detailPane {
}
d.AddItem(d.text, 0, 1, false)
d.SetBorder(true).SetTitle(" Details ")
app.panes = append(app.panes, d)
return d
}
// Show displays the text and, if there is one, the poster.
func (d *detailPane) Show(text detailText, ref coverRef) {
d.detail = text
d.detail, d.lastRef = text, ref
d.laidOut.valid = false
if !d.app.covers || ref.fetch == nil {
d.want, d.hasCover = "", false