mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +00:00
feat: add UnblockNeteaseMusic switch
This commit is contained in:
parent
b47ea5aa1f
commit
7d580e7113
8 changed files with 67 additions and 73 deletions
|
|
@ -131,7 +131,7 @@ export default {
|
|||
},
|
||||
trackClass() {
|
||||
let trackClass = [this.type];
|
||||
if (!this.track.playable && this.settings.showUnavailableSongInGreyStyle)
|
||||
if (!this.track.playable && this.showUnavailableSongInGreyStyle)
|
||||
trackClass.push("disable");
|
||||
if (this.isPlaying && this.highlightPlayingTrack)
|
||||
trackClass.push("playing");
|
||||
|
|
@ -148,7 +148,9 @@ export default {
|
|||
);
|
||||
},
|
||||
showUnavailableSongInGreyStyle() {
|
||||
return this.$store.state.settings.showUnavailableSongInGreyStyle;
|
||||
return process.env.IS_ELECTRON
|
||||
? !this.$store.state.settings.enableUnblockNeteaseMusic
|
||||
: true;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue