diff --git a/src/renderer/index.js b/src/renderer/index.js index 9ecc5aab..91f2c339 100644 --- a/src/renderer/index.js +++ b/src/renderer/index.js @@ -709,10 +709,6 @@ const app = new Vue({ this.mk.addEventListener(MusicKit.Events.playbackVolumeDidChange, (_a) => { - if( this.cfg.audio.muted && this.cfg.audio.lastVolume != 0 ) { - this.cfg.audio.muted = false; - this.cfg.audio.lastVolume = 0; - } this.cfg.audio.volume = this.mk.volume }) @@ -3013,7 +3009,6 @@ const app = new Vue({ muteButtonPressed() { if( this.cfg.audio.muted ) { this.mk.volume = this.cfg.audio.lastVolume; - this.cfg.lastVolume = 0; this.cfg.audio.muted = false; } else { this.cfg.audio.lastVolume = this.cfg.audio.volume; @@ -3021,7 +3016,11 @@ const app = new Vue({ this.cfg.audio.muted = true; } }, - + checkMuteChange() { + if( this.cfg.audio.muted ) { + this.cfg.audio.muted = false; + } + }, async apiCall(url, callback) { const xmlHttp = new XMLHttpRequest(); diff --git a/src/renderer/views/components/fullscreen.ejs b/src/renderer/views/components/fullscreen.ejs index 2c0e8257..b93a27e5 100644 --- a/src/renderer/views/components/fullscreen.ejs +++ b/src/renderer/views/components/fullscreen.ejs @@ -81,7 +81,7 @@