There was an error while loading. Please reload this page.
1 parent 5e75ffd commit ef7bce1Copy full SHA for ef7bce1
1 file changed
package/contents/ui/config.qml
@@ -711,8 +711,7 @@ Kirigami.FormLayout {
711
property real speed
712
property string filename: ""
713
714
- onFilenameChanged: {
715
- videoPlayer.pause()
+ onOpened: {
716
videoPlayer.source = filename
717
videoPlayer.position = 0
718
videoPlayer.play()
@@ -732,6 +731,13 @@ Kirigami.FormLayout {
732
731
autoPlay: true
733
loops: MediaPlayer.Infinite
734
playbackRate: videoConfig.speed || cfg_PlaybackRate
+ Component.onCompleted: {
735
+ videoConfig.aboutToHide.connect( function release() {
736
+ videoPlayer.stop()
737
+ videoPlayer.source = ""
738
+ videoConfig.aboutToHide.disconnect(release)
739
+ })
740
+ }
741
}
742
743
0 commit comments