Playback error fix, downloading on windows crash fix, logging POC

This commit is contained in:
exttex 2020-09-01 20:37:02 +02:00
parent 736fa01161
commit 96db2c3753
10 changed files with 116 additions and 11 deletions

View file

@ -1,7 +1,7 @@
<template>
<div>
<v-dialog v-model='show' max-width='420'>
<v-dialog v-model='dShow' max-width='420'>
<v-card>
<v-card-title class='headline'>
@ -57,6 +57,7 @@ export default {
],
qualityString: 'Settings quality',
autostart: true,
dShow: this.show
}
},
methods: {
@ -98,6 +99,15 @@ export default {
return duration * this.$root.settings.downloadsQuality;
}
},
watch: {
//Prevent errors on closing with mouse
show() {
this.dShow = this.show;
},
dShow() {
if (!this.dShow) this.$emit('close');
}
}
}
</script>

View file

@ -49,7 +49,7 @@ export default {
try {
let res = await this.$axios.get(`/lyrics/${this.songId}`);
if (res.data) this.lyrics = res.data;
if (res.data && res.data.lyrics.length > 0) this.lyrics = res.data;
} catch (e) {true;}
this.loading = false;