修复取消任务栏进度条可能导致的bug

pull/96/head
lyswhut 2019-08-23 20:10:09 +08:00
parent d6c7fb8dcc
commit 2ada44a2fc
2 changed files with 12 additions and 2 deletions

View File

@ -71,7 +71,7 @@ export default {
},
delayNextTimeout: null,
audioErrorTime: 0,
// retryNum: 0,
retryNum: 0,
}
},
computed: {

View File

@ -102,6 +102,7 @@ div.scroll(:class="$style.setting")
<script>
import { mapGetters, mapMutations } from 'vuex'
import { openDirInExplorer, openSelectDir, openSaveDir, updateSetting, openUrl } from '../utils'
import { rendererSend } from '../../common/icp'
import fs from 'fs'
@ -124,7 +125,7 @@ export default {
isShowAlbumName: true,
},
download: {
savePath: 'C:\\',
savePath: '',
fileName: '歌名 - 歌手',
},
themeId: 0,
@ -187,6 +188,15 @@ export default {
},
deep: true,
},
'current_setting.player.isShowTaskProgess'(n) {
if (n) return
this.$nextTick(() => {
rendererSend('progress', {
status: -1,
mode: 'normal',
})
})
},
},
mounted() {
this.init()