feat: add UnblockNeteaseMusic switch

This commit is contained in:
qier222 2021-04-25 14:01:55 +08:00
parent b47ea5aa1f
commit 7d580e7113
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
8 changed files with 67 additions and 73 deletions

View file

@ -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: {