feat: 关闭应用的提示修改 可存储配置最小化 还是 关闭

This commit is contained in:
alger
2025-01-03 22:24:13 +08:00
parent 1dc7d0ceca
commit 46f8067577
5 changed files with 92 additions and 17 deletions
+2 -1
View File
@@ -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();
}
});