From 62802aa79ecda9026fa8654ade4061ba7e117b1c Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Tue, 23 Dec 2025 20:38:05 -0500 Subject: [PATCH] Link author subtitles to subtitles tool --- author_module.go | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/author_module.go b/author_module.go index b13254e..7654621 100644 --- a/author_module.go +++ b/author_module.go @@ -406,6 +406,19 @@ func buildSubtitlesTab(state *appState) fyne.CanvasObject { }) addBtn.Importance = widget.HighImportance + openSubtitlesBtn := widget.NewButton("Open Subtitles Tool", func() { + if state.authorFile != nil { + state.subtitleVideoPath = state.authorFile.Path + } else if len(state.authorClips) > 0 { + state.subtitleVideoPath = state.authorClips[0].Path + } + if len(state.authorSubtitles) > 0 { + state.subtitleFilePath = state.authorSubtitles[0] + } + state.showSubtitlesView() + }) + openSubtitlesBtn.Importance = widget.MediumImportance + clearBtn := widget.NewButton("Clear All", func() { state.authorSubtitles = []string{} buildSubList() @@ -435,7 +448,7 @@ func buildSubtitlesTab(state *appState) fyne.CanvasObject { controls := container.NewBorder( widget.NewLabel("Subtitle Tracks:"), - container.NewHBox(addBtn, clearBtn), + container.NewHBox(addBtn, openSubtitlesBtn, clearBtn), nil, nil, listArea,