fix: app won't quit

This commit is contained in:
alikia2x (寒寒) 2024-12-02 02:06:55 +08:00
parent d8c6c978de
commit bb07963381
Signed by: alikia2x
GPG Key ID: 56209E0CCD8420C6
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"name": "openrewind",
"version": "0.2.0",
"version": "0.2.1",
"type": "module",
"description": "Your second brain, superpowered.",
"main": "dist/dev/index.js",

View File

@ -63,7 +63,7 @@ function createTray() {
{
label: t("tray.quit"),
click: () => {
app.quit();
app.exit();
}
}
]);
@ -93,6 +93,6 @@ app.on("ready", () => {
mainWindow.hide();
});
});
app.on("window-all-closed", () => {
if (process.platform !== "darwin") app.quit();
});
// app.on("window-all-closed", () => {
// if (process.platform !== "darwin") app.quit();
// });