mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2025-01-31 10:04:59 +08:00
Merge pull request #2127 from runnableAir/fix_player_enable
Fix: 右键播放歌曲无法激活播放栏
This commit is contained in:
commit
741fdc973c
|
@ -823,6 +823,9 @@ export default class {
|
|||
this._howler?.once('play', () => {
|
||||
this._howler?.fade(0, this.volume, PLAY_PAUSE_FADE_DURATION);
|
||||
|
||||
// 播放时确保开启player.
|
||||
// 避免因"忘记设置"导致在播放时播放器不显示的Bug
|
||||
this._enabled = true;
|
||||
this._setPlaying(true);
|
||||
if (this._currentTrack.name) {
|
||||
setTitle(this._currentTrack);
|
||||
|
@ -879,7 +882,6 @@ export default class {
|
|||
autoPlayTrackID = 'first'
|
||||
) {
|
||||
this._isPersonalFM = false;
|
||||
if (!this._enabled) this._enabled = true;
|
||||
this.list = trackIDs;
|
||||
this.current = 0;
|
||||
this._playlistSource = {
|
||||
|
@ -941,7 +943,6 @@ export default class {
|
|||
}
|
||||
playPersonalFM() {
|
||||
this._isPersonalFM = true;
|
||||
if (!this._enabled) this._enabled = true;
|
||||
if (this.currentTrackID !== this._personalFMTrack.id) {
|
||||
this._replaceCurrentTrack(this._personalFMTrack.id, true);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user