This commit is contained in:
JellyBrick
2023-10-04 20:30:04 +09:00
parent 371a7eb475
commit 92a3a55803
4 changed files with 13 additions and 11 deletions

View File

@ -4,6 +4,7 @@ import { BrowserWindow, nativeImage } from 'electron';
import getSongControls from '../../providers/song-controls';
import registerCallback, { SongInfo } from '../../providers/song-info';
import { getMediaIconLocation } from '../utils';
export default (win: BrowserWindow) => {
let currentSongInfo: SongInfo;
@ -43,7 +44,7 @@ export default (win: BrowserWindow) => {
// Util
const get = (kind: string) => {
return path.join(__dirname, '../../assets/media-icons-black', `${kind}.png`);
return path.join(getMediaIconLocation(), `${kind}.png`);
};
registerCallback((songInfo) => {