From a5aae3fce8c84520be4671cc02457992e47c1685 Mon Sep 17 00:00:00 2001 From: advplyr Date: Thu, 25 Aug 2022 18:04:14 -0500 Subject: [PATCH] Fix:Audio player more menu close playback --- components/app/AudioPlayer.vue | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/components/app/AudioPlayer.vue b/components/app/AudioPlayer.vue index 36eba3f7..e8353625 100644 --- a/components/app/AudioPlayer.vue +++ b/components/app/AudioPlayer.vue @@ -179,7 +179,7 @@ export default { icon: this.useChapterTrack ? 'check_box' : 'check_box_outline_blank' }, { - text: 'Lock/Unlock', + text: this.lockUi ? 'Unlock Player' : 'Lock Player', value: 'lock', icon: this.lockUi ? 'lock' : 'lock_open' }, @@ -643,21 +643,21 @@ export default { }, clickMenuAction(action) { this.showMoreMenuDialog = false - if (action === 'lock') { - this.lockUi = !this.lockUi - this.$localStore.setPlayerLock(this.lockUi) - } else if (action === 'chapter_track') { - this.useChapterTrack = !this.useChapterTrack + this.$nextTick(() => { + if (action === 'lock') { + this.lockUi = !this.lockUi + this.$localStore.setPlayerLock(this.lockUi) + } else if (action === 'chapter_track') { + this.useChapterTrack = !this.useChapterTrack - this.$nextTick(() => { this.updateTimestamp() this.updateTrack() this.updateReadyTrack() - }) - this.$localStore.setUseChapterTrack(this.useChapterTrack) - } else if (action === 'close') { - this.closePlayback() - } + this.$localStore.setUseChapterTrack(this.useChapterTrack) + } else if (action === 'close') { + this.closePlayback() + } + }) }, forceCloseDropdownMenu() { if (this.$refs.dropdownMenu && this.$refs.dropdownMenu.closeMenu) {