Disable player sync in thumbnails preview
This commit is contained in:
parent
44e51f3c8b
commit
6d59b5837a
6
main.go
6
main.go
|
|
@ -10018,7 +10018,7 @@ func buildVideoPane(state *appState, min fyne.Size, src *videoSource, onCover fu
|
||||||
dlg.Show()
|
dlg.Show()
|
||||||
})
|
})
|
||||||
|
|
||||||
usePlayer := true
|
usePlayer := state.active != "thumb"
|
||||||
|
|
||||||
currentTime := widget.NewLabel("0:00")
|
currentTime := widget.NewLabel("0:00")
|
||||||
totalTime := widget.NewLabel(src.DurationString())
|
totalTime := widget.NewLabel(src.DurationString())
|
||||||
|
|
@ -10204,7 +10204,9 @@ func buildVideoPane(state *appState, min fyne.Size, src *videoSource, onCover fu
|
||||||
|
|
||||||
overlay := container.NewVBox(layout.NewSpacer(), overlayBar)
|
overlay := container.NewVBox(layout.NewSpacer(), overlayBar)
|
||||||
videoWithOverlay := container.NewMax(videoStage, overlay)
|
videoWithOverlay := container.NewMax(videoStage, overlay)
|
||||||
state.setPlayerSurface(videoStage, int(targetWidth-12), int(targetHeight-12))
|
if usePlayer {
|
||||||
|
state.setPlayerSurface(videoStage, int(targetWidth-12), int(targetHeight-12))
|
||||||
|
}
|
||||||
|
|
||||||
stack := container.NewVBox(
|
stack := container.NewVBox(
|
||||||
container.NewPadded(videoWithOverlay),
|
container.NewPadded(videoWithOverlay),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user