mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 21:58:03 +00:00
fix: 当部署到服务器上时,不显示桌面歌词切换图标 (#689)
* Add OSD Lyrics * tidy files * fix OSDLyrics: last line of lyrics not showing, performance * tidy files * make user can resize the lyrics window * Fix bug of initial window size * Fix: 1. auto resize osdlyrics window after packaging; 2. lyric parser problem with %; * tidy files * hide osdlyrics button if not in electron * tidy files
This commit is contained in:
parent
2d712eefe1
commit
427806b0d7
2 changed files with 4 additions and 6 deletions
|
|
@ -96,11 +96,8 @@
|
|||
<div class="blank"></div>
|
||||
<div class="container" @click.stop>
|
||||
<button-icon
|
||||
v-if="osdState"
|
||||
:title="$t('player.osdlyrics')"
|
||||
:class="{
|
||||
active: osdState,
|
||||
disabled: !osdState,
|
||||
}"
|
||||
@click.native="toggleOSDLyrics"
|
||||
><svg-icon icon-class="osd-lyrics"
|
||||
/></button-icon>
|
||||
|
|
@ -215,7 +212,7 @@ export default {
|
|||
: '';
|
||||
},
|
||||
osdState() {
|
||||
return true; //this.$store.osdlyrics.show || false;
|
||||
return Boolean(ipcRenderer);
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue