Skip to content

Commit

Permalink
support cmd+r reload
Browse files Browse the repository at this point in the history
  • Loading branch information
miaowing committed May 30, 2019
1 parent cd11b96 commit 1b3f695
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "i5sing",
"productName": "i5sing",
"version": "0.2.0-alpha0",
"version": "0.2.0-alpha1t",
"description": "My Electron application description",
"main": "./.webpack/main",
"scripts": {
Expand Down
5 changes: 5 additions & 0 deletions src/main/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ export const initMacMenu = (window: BrowserWindow): MenuItemConstructorOptions[]
{
label: '视图',
submenu: [
{
label: '刷新',
accelerator: 'Command+R',
role: 'reload'
},
{
label: 'DevTools',
accelerator: 'Alt+Command+I',
Expand Down
2 changes: 1 addition & 1 deletion src/main/upgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function checkForUpdatesByReq(): any {
});
}

export async function checkVersion(notShowLatest: boolean) {
export async function checkVersion(notShowLatest?: boolean) {
const data = await checkForUpdatesByReq();

let title = '',
Expand Down

0 comments on commit 1b3f695

Please sign in to comment.