fix: remove osdlyrics

This commit is contained in:
qier222 2021-06-10 13:50:31 +08:00
parent c7681df0e8
commit caaf62ea20
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
9 changed files with 3 additions and 391 deletions

View file

@ -12,7 +12,7 @@ const log = text => {
const client = require('discord-rich-presence')('818936529484906596');
export function initIpcMain(win, store, lrc) {
export function initIpcMain(win, store) {
ipcMain.on('unblock-music', (event, track) => {
// 兼容 unblockneteasemusic 所使用的 api 字段
track.alias = track.alia || [];
@ -128,14 +128,6 @@ export function initIpcMain(win, store, lrc) {
store.set('proxy', '');
});
ipcMain.on('resizeOSDLyrics', (event, arg) => {
lrc.resizeOSDLyrics(arg);
});
ipcMain.on('toggleOSDLyrics', () => {
lrc.toggleOSDLyrics();
});
ipcMain.on('switchGlobalShortcutStatusTemporary', (e, status) => {
if (status === 'disable') {
globalShortcut.unregisterAll();