修复切歌时的状态栏进度条显示问题
parent
6300236cdb
commit
0522114c5d
|
@ -167,7 +167,6 @@ function startMain() {
|
|||
}
|
||||
|
||||
function startElectron() {
|
||||
console.log('startElectron')
|
||||
let args = [
|
||||
'--inspect=5858',
|
||||
// 'NODE_ENV=development',
|
||||
|
|
|
@ -87,9 +87,9 @@ export default () => {
|
|||
if (status.collect != null) taskBarButtonFlags.collect = status.collect
|
||||
setThumbarButtons(taskBarButtonFlags)
|
||||
}
|
||||
if (status.progress != null && global.lx.player_status.duration) {
|
||||
const progress = status.progress / global.lx.player_status.duration
|
||||
if (progress.toFixed(2) != progressStatus.progress.toFixed(2) && showProgress) {
|
||||
if (showProgress && status.progress != null) {
|
||||
const progress = global.lx.player_status.duration ? status.progress / global.lx.player_status.duration : 0
|
||||
if (progress.toFixed(2) != progressStatus.progress.toFixed(2)) {
|
||||
progressStatus.progress = progress < 0.01 ? 0.01 : progress
|
||||
setProgressBar(progressStatus.progress, {
|
||||
mode: progressStatus.status,
|
||||
|
|
Loading…
Reference in New Issue