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