mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-20 09:40:17 +02:00
Fix:Persist Total Track setting in audio player #663
This commit is contained in:
parent
5a953464ab
commit
a7443d0992
1 changed files with 3 additions and 0 deletions
|
@ -695,6 +695,7 @@ export default {
|
||||||
this.updateTimestamp()
|
this.updateTimestamp()
|
||||||
this.updateTrack()
|
this.updateTrack()
|
||||||
this.updateReadyTrack()
|
this.updateReadyTrack()
|
||||||
|
this.$localStore.setUseTotalTrack(this.useTotalTrack)
|
||||||
this.$localStore.setUseChapterTrack(this.useChapterTrack)
|
this.$localStore.setUseChapterTrack(this.useChapterTrack)
|
||||||
} else if (action === 'total_track') {
|
} else if (action === 'total_track') {
|
||||||
this.useTotalTrack = !this.useTotalTrack
|
this.useTotalTrack = !this.useTotalTrack
|
||||||
|
@ -704,6 +705,7 @@ export default {
|
||||||
this.updateTrack()
|
this.updateTrack()
|
||||||
this.updateReadyTrack()
|
this.updateReadyTrack()
|
||||||
this.$localStore.setUseTotalTrack(this.useTotalTrack)
|
this.$localStore.setUseTotalTrack(this.useTotalTrack)
|
||||||
|
this.$localStore.setUseChapterTrack(this.useChapterTrack)
|
||||||
} else if (action === 'close') {
|
} else if (action === 'close') {
|
||||||
this.closePlayback()
|
this.closePlayback()
|
||||||
}
|
}
|
||||||
|
@ -792,6 +794,7 @@ export default {
|
||||||
},
|
},
|
||||||
async init() {
|
async init() {
|
||||||
this.useChapterTrack = await this.$localStore.getUseChapterTrack()
|
this.useChapterTrack = await this.$localStore.getUseChapterTrack()
|
||||||
|
this.useTotalTrack = await this.$localStore.getUseTotalTrack()
|
||||||
this.lockUi = await this.$localStore.getPlayerLock()
|
this.lockUi = await this.$localStore.getPlayerLock()
|
||||||
|
|
||||||
this.onPlaybackSessionListener = AbsAudioPlayer.addListener('onPlaybackSession', this.onPlaybackSession)
|
this.onPlaybackSessionListener = AbsAudioPlayer.addListener('onPlaybackSession', this.onPlaybackSession)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue