mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
Merge pull request #4797 from FineFindus/fix/play-button
fix(player): allow pausing while loading
This commit is contained in:
commit
bd316603f3
@ -13,7 +13,7 @@ fun Player.togglePlayPauseState() {
|
|||||||
seekTo(0)
|
seekTo(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
!isPlaying && !isLoading -> play()
|
!isPlaying && totalBufferedDuration > 0 -> play()
|
||||||
else -> pause()
|
else -> pause()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user