feat(author): Clear DVD title on module open and sync between tabs
- DVD title now starts empty each time Author module is opened - Added DVD Title entry field to Videos tab - Both Videos and Settings tab title fields update the same state - Both trigger summary update and config persistence
This commit is contained in:
parent
30d5dff491
commit
cb754a186e
|
|
@ -370,12 +370,28 @@ func buildVideoClipsTab(state *appState) fyne.CanvasObject {
|
||||||
|
|
||||||
listArea := container.NewMax(dropTarget, emptyOverlay)
|
listArea := container.NewMax(dropTarget, emptyOverlay)
|
||||||
|
|
||||||
|
// DVD Title entry (synced with Settings tab)
|
||||||
|
dvdTitleEntry := widget.NewEntry()
|
||||||
|
dvdTitleEntry.SetPlaceHolder("DVD Title")
|
||||||
|
dvdTitleEntry.SetText(state.authorTitle)
|
||||||
|
dvdTitleEntry.OnChanged = func(value string) {
|
||||||
|
state.authorTitle = value
|
||||||
|
state.updateAuthorSummary()
|
||||||
|
state.persistAuthorConfig()
|
||||||
|
}
|
||||||
|
|
||||||
// Note about chapter names
|
// Note about chapter names
|
||||||
chapterNote := widget.NewLabel("Chapter names are saved for future DVD menu support")
|
chapterNote := widget.NewLabel("Chapter names are saved for future DVD menu support")
|
||||||
chapterNote.TextStyle = fyne.TextStyle{Italic: true}
|
chapterNote.TextStyle = fyne.TextStyle{Italic: true}
|
||||||
|
|
||||||
controls := container.NewBorder(
|
controls := container.NewBorder(
|
||||||
container.NewVBox(widget.NewLabel("Videos:"), chapterNote),
|
container.NewVBox(
|
||||||
|
widget.NewLabel("DVD Title:"),
|
||||||
|
dvdTitleEntry,
|
||||||
|
widget.NewSeparator(),
|
||||||
|
widget.NewLabel("Videos:"),
|
||||||
|
chapterNote,
|
||||||
|
),
|
||||||
container.NewVBox(chapterToggle, container.NewHBox(addBtn, clearBtn, addQueueBtn, compileBtn)),
|
container.NewVBox(chapterToggle, container.NewHBox(addBtn, clearBtn, addQueueBtn, compileBtn)),
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user