feat: updates

This commit is contained in:
qier222 2023-01-07 14:39:03 +08:00
parent 884f3df41a
commit c6c59b2cd9
No known key found for this signature in database
84 changed files with 3531 additions and 2616 deletions

View file

@ -8,6 +8,7 @@ import { State as PlayerState } from '@/web/utils/player'
import { useEffect, useRef, useState } from 'react'
import { useEffectOnce } from 'react-use'
import { useSnapshot } from 'valtio'
import { appName } from './utils/const'
const IpcRendererReact = () => {
const [isPlaying, setIsPlaying] = useState(false)
@ -26,7 +27,7 @@ const IpcRendererReact = () => {
useEffect(() => {
trackIDRef.current = track?.id ?? 0
const text = track?.name ? `${track.name} - YesPlayMusic` : 'YesPlayMusic'
const text = track?.name ? `${track.name} - ${appName}` : appName
window.ipcRenderer?.send(IpcChannels.SetTrayTooltip, {
text,
})