mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-24 16:27:23 +08:00
🐞 fix: 修复关闭报错
This commit is contained in:
@@ -111,6 +111,7 @@ ipcMain.on('maximize-window', (event) => {
|
|||||||
ipcMain.on('close-window', (event) => {
|
ipcMain.on('close-window', (event) => {
|
||||||
const win = BrowserWindow.fromWebContents(event.sender);
|
const win = BrowserWindow.fromWebContents(event.sender);
|
||||||
win.destroy();
|
win.destroy();
|
||||||
|
app.quit();
|
||||||
});
|
});
|
||||||
|
|
||||||
ipcMain.on('drag-start', (event) => {
|
ipcMain.on('drag-start', (event) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user