Skip to content

Commit

Permalink
catch error from failed update
Browse files Browse the repository at this point in the history
  • Loading branch information
chikeichan committed Dec 16, 2020
1 parent ae18d94 commit d763f2d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@
],
"icon": "resources/icon.icns"
},
"win": {
"target": [
"msi"
],
"icon": "resources/icon.icns"
},
"dmg": {
"contents": [
{
Expand Down
3 changes: 2 additions & 1 deletion src/ui/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ function renderFooterStatus(showingFallback: boolean): ReactNode {
await postIPCMain({
type: IPCMessageRequestType.SEND_UPDATE_FOR_CURRENT_USER,
payload: {},
}, true);
}, true)
.catch(() => null);
await postIPCMain({
type: IPCMessageRequestType.SCAN_ALL_NAMES,
payload: null,
Expand Down

0 comments on commit d763f2d

Please sign in to comment.