Skip to content

Commit 0c87e0e

Browse files
authored
fix(menu): add 'Quit' option with CmdOrCtrl+Q shortcut 🐛 (#376)
1 parent beef174 commit 0c87e0e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

apps/agent-tars/src/main/menu.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
shell,
88
BrowserWindow,
99
MenuItemConstructorOptions,
10+
app,
1011
} from 'electron';
1112
import { openLogFile, openLogDir } from './utils/logger';
1213

@@ -82,6 +83,13 @@ export default class MenuBuilder {
8283
this.mainWindow.close();
8384
},
8485
},
86+
{
87+
label: 'Quit',
88+
accelerator: 'CmdOrCtrl+Q',
89+
click: () => {
90+
app.quit();
91+
},
92+
},
8593
],
8694
};
8795

0 commit comments

Comments
 (0)