mica will now start loading when selected, mica is disabled in devmode by default
This commit is contained in:
parent
376031190a
commit
c874d09f8e
3 changed files with 14 additions and 3 deletions
|
@ -105,7 +105,7 @@ function fallbackinitMusicKit() {
|
|||
})
|
||||
setTimeout(() => {
|
||||
app.init()
|
||||
if(app.cfg.visual.window_background_style == "mica") {
|
||||
if(app.cfg.visual.window_background_style == "mica" && !app.isDev) {
|
||||
app.spawnMica()
|
||||
}
|
||||
}, 1000)
|
||||
|
@ -134,7 +134,7 @@ document.addEventListener('musickitloaded', function () {
|
|||
function waitForApp() {
|
||||
if (typeof app.init !== "undefined") {
|
||||
app.init()
|
||||
if(app.cfg.visual.window_background_style == "mica") {
|
||||
if(app.cfg.visual.window_background_style == "mica" && !app.isDev) {
|
||||
app.spawnMica()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
async function spawnMica() {
|
||||
if(typeof window.micaSpawned !== "undefined") {
|
||||
return
|
||||
}else{
|
||||
window.micaSpawned = true
|
||||
}
|
||||
const micaDiv = document.createElement('div');
|
||||
const blurIterations = 6
|
||||
micaDiv.id = 'micaEffect';
|
||||
|
|
|
@ -164,7 +164,7 @@
|
|||
{{$root.getLz('settings.option.visual.windowBackgroundStyle')}}
|
||||
</div>
|
||||
<div class="md-option-segment md-option-segment_auto">
|
||||
<select class="md-select" @change="$root.getNowPlayingArtworkBG(undefined, true)"
|
||||
<select class="md-select" @change="windowBgStyleChange"
|
||||
v-model="app.cfg.visual.window_background_style">
|
||||
<option value="none">{{$root.getLz('settings.header.visual.windowBackgroundStyle.none')}}
|
||||
</option>
|
||||
|
@ -881,6 +881,12 @@
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
windowBgStyleChange() {
|
||||
this.$root.getNowPlayingArtworkBG(undefined, true)
|
||||
if(this.$root.cfg.visual.window_background_style == "mica") {
|
||||
this.$root.spawnMica()
|
||||
}
|
||||
},
|
||||
reinstallWidevineCDM () {
|
||||
bootbox.confirm("Are you sure you want to reinstall Widevine?", (ok)=>{
|
||||
if(ok) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue