Skip to content

Commit

Permalink
can quit
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmart committed Oct 7, 2024
1 parent 9d46276 commit ccdb9a8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,15 @@ app.whenReady().then(() => {
const contextMenu = Menu.buildFromTemplate([
{
label: "v0.9.6",
type: "normal"
type: "normal",
enabled: false
},
{
label: "Quit",
type: "normal",
click: (mi, window, event) => {
app.quit();
}
},
{
label: "Proxy?",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"scripts": {
"pack": "electron-builder --dir",
"dist": "electron-builder",
"start": "electron-forge start",
"start": "electron .",
"package": "electron-forge package",
"make": "electron-forge make",
"publish": "electron-forge publish"
Expand Down

0 comments on commit ccdb9a8

Please sign in to comment.