mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
refactor: hide window when close app (#78)
fix: window can't be close by shortcutkey fix: tray does not show in Windows
This commit is contained in:
parent
f68ae5c078
commit
b394ec0899
5 changed files with 44 additions and 7 deletions
|
|
@ -33,8 +33,9 @@ export function initIpcMain(win) {
|
|||
});
|
||||
|
||||
ipcMain.on("close", () => {
|
||||
win.close();
|
||||
app.quit();
|
||||
win.hide();
|
||||
// win.close();
|
||||
// app.quit();
|
||||
});
|
||||
|
||||
ipcMain.on("minimize", () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue