Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
Fixed exit codes
Browse files Browse the repository at this point in the history
  • Loading branch information
OrigamingWasTaken committed Jan 27, 2024
1 parent 3344b52 commit 764e494
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions svelte/src/lib/app/events.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { events, app, window } from "@neutralinojs/lib";
import { events, app } from "@neutralinojs/lib";

events.on("windowClose", ()=>{
app.exit(1)
app.exit(0)
})
4 changes: 2 additions & 2 deletions svelte/src/lib/app/keystrokes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import hotkeys from "hotkeys-js";
import { app, window } from "@neutralinojs/lib";
import { app } from "@neutralinojs/lib";

hotkeys("ctrl+c,cmd+c", (e)=>{
e.preventDefault()
Expand All @@ -24,7 +24,7 @@ hotkeys("ctrl+z,cmd+z", (e)=>{

hotkeys("cmd+q,cmd+w", (e)=>{
e.preventDefault()
app.exit(1)
app.exit(0)
})

hotkeys("ctrl+a,cmd+a", (e)=>{
Expand Down
4 changes: 2 additions & 2 deletions svelte/src/lib/app/tray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface TrayMenuItem {
let tray: TrayMenuItem[] = [];

const mode = import.meta.env.MODE === 'development' ? 'dev' : 'prod'
console.log(mode)
console.log("Environment: " + mode)

export async function updateTray(updatedItems: TrayMenuItem[]) {

Expand Down Expand Up @@ -63,7 +63,7 @@ export async function removeTray(trayIds: string[]) {
}])
break;
case "quit":
app.exit(1)
app.exit(0)
}
})
})();

0 comments on commit 764e494

Please sign in to comment.