Corrections made to queue system
This commit is contained in:
parent
1a86fa3f79
commit
4614f2ce8e
2
main.go
2
main.go
|
|
@ -1916,6 +1916,7 @@ func buildVideoPane(state *appState, min fyne.Size, src *videoSource, onCover fu
|
||||||
|
|
||||||
open := widget.NewButton("Open File…", func() {
|
open := widget.NewButton("Open File…", func() {
|
||||||
logging.Debug(logging.CatUI, "convert open file dialog requested")
|
logging.Debug(logging.CatUI, "convert open file dialog requested")
|
||||||
|
// Use custom file dialog that supports multiple selection
|
||||||
dlg := dialog.NewFileOpen(func(r fyne.URIReadCloser, err error) {
|
dlg := dialog.NewFileOpen(func(r fyne.URIReadCloser, err error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logging.Debug(logging.CatUI, "file open error: %v", err)
|
logging.Debug(logging.CatUI, "file open error: %v", err)
|
||||||
|
|
@ -1924,6 +1925,7 @@ func buildVideoPane(state *appState, min fyne.Size, src *videoSource, onCover fu
|
||||||
if r == nil {
|
if r == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// Single file selection via NewFileOpen
|
||||||
path := r.URI().Path()
|
path := r.URI().Path()
|
||||||
r.Close()
|
r.Close()
|
||||||
go state.loadVideo(path)
|
go state.loadVideo(path)
|
||||||
|
|
|
||||||
BIN
videotools
Executable file
BIN
videotools
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user