Commit 59c7fc04 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵
Browse files

save on quit and restore on start the volume and muted state

parent c09200b6
......@@ -6,5 +6,4 @@ Toto list:
* improve and measure test coverage
* improve the album list view (consistency with the other views)
* restore track position on quit and start
* restore the volume and mute state on quit and start
......@@ -61,6 +61,9 @@ ApplicationWindow {
property var playListControlerState
property var audioPlayerState
property double playControlItemVolume
property bool playControlItemMuted
}
property string globalBrowseFlag: 'BrowseDirectChildren'
......@@ -120,6 +123,9 @@ ApplicationWindow {
persistentSettings.playListState = playListModelItem.persistentState;
persistentSettings.playListControlerState = playListControlerItem.persistentState;
persistentSettings.audioPlayerState = manageAudioPlayer.persistentState
persistentSettings.playControlItemVolume = playControlItem.volume
persistentSettings.playControlItemMuted = playControlItem.muted
}
}
......@@ -278,7 +284,8 @@ ApplicationWindow {
duration: audioPlayer.duration
seekable: audioPlayer.seekable
volume: 1.0
volume: persistentSettings.playControlItemVolume
muted: persistentSettings.playControlItemMuted
position: audioPlayer.position
skipBackwardEnabled: myPlayControlManager.skipBackwardControlEnabled
skipForwardEnabled: myPlayControlManager.skipForwardControlEnabled
......
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