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 { ...@@ -54,6 +54,8 @@ ApplicationWindow {
property var playListState property var playListState
property var playListControlerState property var playListControlerState
property var audioPlayerState
} }
property string globalBrowseFlag: 'BrowseDirectChildren' property string globalBrowseFlag: 'BrowseDirectChildren'
...@@ -111,7 +113,8 @@ ApplicationWindow { ...@@ -111,7 +113,8 @@ ApplicationWindow {
persistentSettings.height = mainWindow.height; persistentSettings.height = mainWindow.height;
persistentSettings.playListState = playListModelItem.persistentState; persistentSettings.playListState = playListModelItem.persistentState;
//persistentSettings.playListControlerState = playListControlerItem.persistentState; persistentSettings.playListControlerState = playListControlerItem.persistentState;
persistentSettings.audioPlayerState = manageAudioPlayer.persistentState
} }
} }
...@@ -187,7 +190,7 @@ ApplicationWindow { ...@@ -187,7 +190,7 @@ ApplicationWindow {
onPlayListFinished: manageAudioPlayer.playListFinished() onPlayListFinished: manageAudioPlayer.playListFinished()
//persistentState: persistentSettings.playListControlerState persistentState: persistentSettings.playListControlerState
Component.onCompleted: Component.onCompleted:
{ {
...@@ -224,29 +227,12 @@ ApplicationWindow { ...@@ -224,29 +227,12 @@ ApplicationWindow {
audioDuration: audioPlayer.duration audioDuration: audioPlayer.duration
playerIsSeekable: audioPlayer.seekable playerIsSeekable: audioPlayer.seekable
onPlayerPlay: persistentState: persistentSettings.audioPlayerState
{
console.log('ManageAudioPlayer.playerPlay')
audioPlayer.play()
}
onPlayerPause:
{
console.log('ManageAudioPlayer.playerPause')
audioPlayer.pause()
}
onPlayerStop: onPlayerPlay: audioPlayer.play()
{ onPlayerPause: audioPlayer.pause()
console.log('ManageAudioPlayer.playerStop') onPlayerStop: audioPlayer.stop()
audioPlayer.stop() onSkipNextTrack: playListControlerItem.skipNextTrack()
}
onSkipNextTrack:
{
console.log('ManageAudioPlayer.skipNextTrack')
playListControlerItem.skipNextTrack()
}
} }
ManageMediaPlayerControl { 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