mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-24 16:27:23 +08:00
✨ feat: 关闭应用的提示修改 可存储配置最小化 还是 关闭
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { BrowserWindow, shell, ipcMain } from 'electron';
|
||||
import { BrowserWindow, shell, ipcMain, app } from 'electron';
|
||||
import { is } from '@electron-toolkit/utils';
|
||||
import { join } from 'path';
|
||||
|
||||
@@ -28,6 +28,7 @@ export function initializeWindowManager() {
|
||||
const win = BrowserWindow.fromWebContents(event.sender);
|
||||
if (win) {
|
||||
win.destroy();
|
||||
app.quit();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
+2
-1
@@ -4,5 +4,6 @@
|
||||
"animationSpeed": 1,
|
||||
"author": "Alger",
|
||||
"authorUrl": "https://github.com/algerkong",
|
||||
"musicApiPort": 30488
|
||||
"musicApiPort": 30488,
|
||||
"closeAction": "ask"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user