mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-11 10:38:11 +08:00
[client-app] directly call windows relaunch on squirrel update
This commit is contained in:
parent
fc5645b9eb
commit
ddee8b83f7
1 changed files with 1 additions and 5 deletions
|
@ -164,11 +164,7 @@ const handleStartupEventWithSquirrel = () => {
|
||||||
)
|
)
|
||||||
return true
|
return true
|
||||||
case '--squirrel-updated':
|
case '--squirrel-updated':
|
||||||
WindowsUpdater.createRegistryEntries(options, () =>
|
WindowsUpdater.restartN1(app)
|
||||||
WindowsUpdater.updateShortcuts(() =>
|
|
||||||
app.quit()
|
|
||||||
)
|
|
||||||
)
|
|
||||||
return true
|
return true
|
||||||
case '--squirrel-uninstall':
|
case '--squirrel-uninstall':
|
||||||
WindowsUpdater.removeShortcuts(() =>
|
WindowsUpdater.removeShortcuts(() =>
|
||||||
|
|
Loading…
Reference in a new issue