Skip to content

Commit

Permalink
use common approach to exit the program from the tray and app menu
Browse files Browse the repository at this point in the history
* fixes app exit on macOS
  • Loading branch information
vladimiry committed May 20, 2018
1 parent 3980518 commit e585f20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/electron/main/tray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export async function initTray(ctx: Context, endpoints: EndpointsMap): Promise<T
},
{
label: "Quit",
click() {
app.quit();
async click() {
await endpoints[IpcMainActions.Quit.channel].process(undefined);
},
},
]);
Expand Down

0 comments on commit e585f20

Please sign in to comment.