Skip to content

Commit

Permalink
fix: Fixed quitting app before downloading updates on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkoelle committed May 14, 2021
1 parent b2f533b commit e1c90b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/UpdaterDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ function UpdaterDialog(props: UpdaterDialogProps) {
<Button
variant="outlined"
size="small"
onClick={() => {
shell.openExternal(
onClick={async () => {
await shell.openExternal(
`https://github.com/koellemichael/correctinator/releases/download/v${updateInfo?.version}/${updateInfo?.files[1].url}`
);
remote.app.quit();
Expand Down

0 comments on commit e1c90b8

Please sign in to comment.