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", "name": "openrewind",
"version": "0.2.0", "version": "0.2.1",
"type": "module", "type": "module",
"description": "Your second brain, superpowered.", "description": "Your second brain, superpowered.",
"main": "dist/dev/index.js", "main": "dist/dev/index.js",

View File

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