HACK: add setTimeout to uninstaller

This commit is contained in:
Feross Aboukhadijeh
2016-04-04 20:55:19 -07:00
parent d9c95b6826
commit 5330a8a471

View File

@@ -40,13 +40,18 @@ function handleEvent (cmd) {
if (cmd === '--squirrel-uninstall') {
// App was just uninstalled. Undo anything we did in the --squirrel-install and
// --squirrel-updated handlers
removeShortcuts(function () {
app.quit()
})
// Uninstall .torrent file and magnet link handlers
handlers.uninstall()
// Remove desktop/start menu shortcuts.
// HACK: add a callback to handlers.uninstall() so we can remove this setTimeout
setTimeout(function () {
removeShortcuts(function () {
app.quit()
})
}, 1000)
return true
}