Enable subtitles drag-and-drop in module view

This commit is contained in:
Stu Leak 2026-01-11 06:48:18 -05:00
parent 6a57a3ccdc
commit b5e51edb05

View File

@ -1285,6 +1285,7 @@ type authorClip struct {
Duration float64 // Video duration
Chapters []authorChapter // Chapters for this clip
ChapterTitle string // Optional chapter title when treating clips as chapters
IsExtra bool // Mark this clip as an extra
}
func (s *appState) persistConvertConfig() {
@ -11644,7 +11645,7 @@ func (p *playSession) rebuildPipeline() {
return
}
newSess.SetVolume(volume)
_ = newSess.Seek(offset)
newSess.Seek(offset)
newSess.Pause()
p.mu.Lock()
@ -12213,6 +12214,12 @@ func (s *appState) handleDrop(pos fyne.Position, items []fyne.URI) {
return
}
// If in subtitles module, handle video/subtitle files
if s.active == "subtitles" {
s.handleSubtitlesModuleDrop(items)
return
}
// If in audio module, handle dropped video files
if s.active == "audio" {
var videoPaths []string