Skip to content
This repository was archived by the owner on Dec 11, 2019. It is now read-only.

Commit ef515fe

Browse files
committed
1 parent ec01cc4 commit ef515fe

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/windowsInit.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,12 @@ if (process.platform === 'win32') {
140140
// Sync to avoid file path in use on uninstall
141141
spawnSync(getBraveDefaultsBinPath(), ['-uninstall'])
142142
}
143+
144+
// This actually creates the shortcut
145+
if (shouldQuit(channel)) {
146+
process.exit(0)
147+
}
148+
143149
// silent install brave-core
144150
if (isSquirrelFirstRun || isSquirrelInstall || isSquirrelUpdate) {
145151
if (InstallBraveCore()) {
@@ -151,10 +157,6 @@ if (process.platform === 'win32') {
151157
}
152158
}
153159

154-
if (shouldQuit(channel)) {
155-
process.exit(0)
156-
}
157-
158160
const userDataDirSwitch = '--user-data-dir-name=brave-' + channel
159161
if (channel !== 'dev' && !process.argv.includes(userDataDirSwitch) &&
160162
!process.argv.includes('--relaunch') &&

0 commit comments

Comments
 (0)