mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 13:17:46 +00:00
feat(electron): add minimize to tray option to settings page
This commit is contained in:
parent
09c54486cc
commit
de7d008c0b
8 changed files with 67 additions and 13 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { app, ipcMain } from "electron";
|
||||
import match from "@njzy/unblockneteasemusic";
|
||||
|
||||
export function initIpcMain(win) {
|
||||
export function initIpcMain(win, store) {
|
||||
ipcMain.on("unblock-music", (event, track) => {
|
||||
// 兼容 unblockneteasemusic 所使用的 api 字段
|
||||
track.alias = track.alia || [];
|
||||
|
|
@ -34,4 +34,8 @@ export function initIpcMain(win) {
|
|||
ipcMain.on("minimize", () => {
|
||||
win.minimize();
|
||||
});
|
||||
|
||||
ipcMain.on("settings", (event, options) => {
|
||||
store.set("settings", options);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue