Skip to content

Commit

Permalink
fix menu missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Xue authored and Gary Xue committed Dec 16, 2019
1 parent b8af8fd commit e2b3271
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG.md

## v1.2.4 (2019-12-16)
### Bugfix: fix edit menu missing

## v1.2.3 (2019-12-11)
### Bugfix: fix fire request shortcut
### Bugfix: fix request refresh unnecesary
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h1 class="hero-title h2-mobile mt-0 is-revealing">
<div class="control control-expanded">
<a
class="button button-primary button-block button-shadow"
href="https://github.com/garyxuehong/postmate/releases/download/v1.2.3/Postmate-1.2.3.dmg"
href="https://github.com/garyxuehong/postmate/releases/download/v1.2.4/Postmate-1.2.4.dmg"
>Download now</a
>
<p style="display:block; margin-top: 20px;">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postmate",
"version": "1.2.3",
"version": "1.2.4",
"private": true,
"main": "public/electron.js",
"homepage": "./",
Expand Down
23 changes: 23 additions & 0 deletions public/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,29 @@ function getTemplate({ onFireRequest }) {
label: "File",
submenu: [isMac ? { role: "close" } : { role: "quit" }]
},
{
label: "Edit",
submenu: [
{ role: "undo" },
{ role: "redo" },
{ type: "separator" },
{ role: "cut" },
{ role: "copy" },
{ role: "paste" },
...(isMac
? [
{ role: "pasteAndMatchStyle" },
{ role: "delete" },
{ role: "selectAll" },
{ type: "separator" },
{
label: "Speech",
submenu: [{ role: "startspeaking" }, { role: "stopspeaking" }]
}
]
: [{ role: "delete" }, { type: "separator" }, { role: "selectAll" }])
]
},
{
label: "Tools",
submenu: [
Expand Down

0 comments on commit e2b3271

Please sign in to comment.