Skip to content

Commit

Permalink
Added exit to menu bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Lee committed Apr 26, 2016
1 parent 9d0d08d commit 25bcbdb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -935,6 +935,16 @@ function loadMenu() {
key: "w",
modifiers: "ctrl",
}));
fileMenu.append(new nw.MenuItem({ type: "separator" }));
fileMenu.append(new nw.MenuItem({
label: "Exit",
click: function() {
confirmSet(closeAnimator, "", "Are you sure you to exit Boats Animator?");
},
key: "q",
modifiers: "ctrl",
}));


// Edit menu items
editMenu.append(new nw.MenuItem({
Expand All @@ -958,7 +968,7 @@ function loadMenu() {
click: function() {
utils.openURL("http://boatsanimator.readthedocs.org/");
},
key: "f1",
key: "F1",
modifiers: "",
}));
helpMenu.append(new nw.MenuItem({
Expand Down

0 comments on commit 25bcbdb

Please sign in to comment.