Skip to content

Commit 4ee47fb

Browse files
committed
chore(auto-update-manager): auto open on download
1 parent a038c23 commit 4ee47fb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/compass/src/main/auto-update-manager.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ function isMismatchedArchDarwin(): boolean {
6363
async function download(url: string): Promise<void> {
6464
const maybeWindow = BrowserWindow.getAllWindows()[0];
6565
if (maybeWindow) {
66-
await dl.download(maybeWindow, url);
66+
await dl.download(maybeWindow, url, {
67+
onCompleted(file) {
68+
void shell.openExternal(file.path);
69+
},
70+
});
6771
} else {
6872
await shell.openExternal(url);
6973
}

0 commit comments

Comments
 (0)