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()
|
||||
})
|
||||
|
||||
usePlayer := true
|
||||
usePlayer := state.active != "thumb"
|
||||
|
||||
currentTime := widget.NewLabel("0:00")
|
||||
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)
|
||||
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(
|
||||
container.NewPadded(videoWithOverlay),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user