Fix:Audio player more menu close playback

This commit is contained in:
advplyr 2022-08-25 18:04:14 -05:00
parent 14ff9097c7
commit a5aae3fce8

View file

@ -179,7 +179,7 @@ export default {
icon: this.useChapterTrack ? 'check_box' : 'check_box_outline_blank' icon: this.useChapterTrack ? 'check_box' : 'check_box_outline_blank'
}, },
{ {
text: 'Lock/Unlock', text: this.lockUi ? 'Unlock Player' : 'Lock Player',
value: 'lock', value: 'lock',
icon: this.lockUi ? 'lock' : 'lock_open' icon: this.lockUi ? 'lock' : 'lock_open'
}, },
@ -643,21 +643,21 @@ export default {
}, },
clickMenuAction(action) { clickMenuAction(action) {
this.showMoreMenuDialog = false this.showMoreMenuDialog = false
this.$nextTick(() => {
if (action === 'lock') { if (action === 'lock') {
this.lockUi = !this.lockUi this.lockUi = !this.lockUi
this.$localStore.setPlayerLock(this.lockUi) this.$localStore.setPlayerLock(this.lockUi)
} else if (action === 'chapter_track') { } else if (action === 'chapter_track') {
this.useChapterTrack = !this.useChapterTrack this.useChapterTrack = !this.useChapterTrack
this.$nextTick(() => {
this.updateTimestamp() this.updateTimestamp()
this.updateTrack() this.updateTrack()
this.updateReadyTrack() this.updateReadyTrack()
})
this.$localStore.setUseChapterTrack(this.useChapterTrack) this.$localStore.setUseChapterTrack(this.useChapterTrack)
} else if (action === 'close') { } else if (action === 'close') {
this.closePlayback() this.closePlayback()
} }
})
}, },
forceCloseDropdownMenu() { forceCloseDropdownMenu() {
if (this.$refs.dropdownMenu && this.$refs.dropdownMenu.closeMenu) { if (this.$refs.dropdownMenu && this.$refs.dropdownMenu.closeMenu) {