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