Commit 7e861b75 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵
Browse files

save/load settings for ManageAudioPlayer and PlayListControler

parent b32bbec6
......@@ -54,6 +54,8 @@ ApplicationWindow {
property var playListState
property var playListControlerState
property var audioPlayerState
}
property string globalBrowseFlag: 'BrowseDirectChildren'
......@@ -111,7 +113,8 @@ ApplicationWindow {
persistentSettings.height = mainWindow.height;
persistentSettings.playListState = playListModelItem.persistentState;
//persistentSettings.playListControlerState = playListControlerItem.persistentState;
persistentSettings.playListControlerState = playListControlerItem.persistentState;
persistentSettings.audioPlayerState = manageAudioPlayer.persistentState
}
}
......@@ -187,7 +190,7 @@ ApplicationWindow {
onPlayListFinished: manageAudioPlayer.playListFinished()
//persistentState: persistentSettings.playListControlerState
persistentState: persistentSettings.playListControlerState
Component.onCompleted:
{
......@@ -224,29 +227,12 @@ ApplicationWindow {
audioDuration: audioPlayer.duration
playerIsSeekable: audioPlayer.seekable
onPlayerPlay:
{
console.log('ManageAudioPlayer.playerPlay')
audioPlayer.play()
}
onPlayerPause:
{
console.log('ManageAudioPlayer.playerPause')
audioPlayer.pause()
}
persistentState: persistentSettings.audioPlayerState
onPlayerStop:
{
console.log('ManageAudioPlayer.playerStop')
audioPlayer.stop()
}
onSkipNextTrack:
{
console.log('ManageAudioPlayer.skipNextTrack')
playListControlerItem.skipNextTrack()
}
onPlayerPlay: audioPlayer.play()
onPlayerPause: audioPlayer.pause()
onPlayerStop: audioPlayer.stop()
onSkipNextTrack: playListControlerItem.skipNextTrack()
}
ManageMediaPlayerControl {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment