Enable subtitles drag-and-drop in module view
This commit is contained in:
parent
6a57a3ccdc
commit
b5e51edb05
9
main.go
9
main.go
|
|
@ -1285,6 +1285,7 @@ type authorClip struct {
|
||||||
Duration float64 // Video duration
|
Duration float64 // Video duration
|
||||||
Chapters []authorChapter // Chapters for this clip
|
Chapters []authorChapter // Chapters for this clip
|
||||||
ChapterTitle string // Optional chapter title when treating clips as chapters
|
ChapterTitle string // Optional chapter title when treating clips as chapters
|
||||||
|
IsExtra bool // Mark this clip as an extra
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *appState) persistConvertConfig() {
|
func (s *appState) persistConvertConfig() {
|
||||||
|
|
@ -11644,7 +11645,7 @@ func (p *playSession) rebuildPipeline() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
newSess.SetVolume(volume)
|
newSess.SetVolume(volume)
|
||||||
_ = newSess.Seek(offset)
|
newSess.Seek(offset)
|
||||||
newSess.Pause()
|
newSess.Pause()
|
||||||
|
|
||||||
p.mu.Lock()
|
p.mu.Lock()
|
||||||
|
|
@ -12213,6 +12214,12 @@ func (s *appState) handleDrop(pos fyne.Position, items []fyne.URI) {
|
||||||
return
|
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 in audio module, handle dropped video files
|
||||||
if s.active == "audio" {
|
if s.active == "audio" {
|
||||||
var videoPaths []string
|
var videoPaths []string
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user