mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Windows shell upgrade fixes #12642
This commit is contained in:
@@ -144,8 +144,9 @@ exports.handleStartupEvent = (app, squirrelCommand) ->
|
||||
when '--squirrel-updated'
|
||||
updateShortcuts ->
|
||||
addCommandsToPath ->
|
||||
updateContextMenus ->
|
||||
app.quit()
|
||||
WinShell.fileHandler.update ->
|
||||
updateContextMenus ->
|
||||
app.quit()
|
||||
true
|
||||
when '--squirrel-uninstall'
|
||||
removeShortcuts ->
|
||||
|
||||
@@ -33,7 +33,7 @@ class ShellOption
|
||||
update: (callback) =>
|
||||
new Registry({hive: 'HKCU', key: "#{@key}\\#{@parts[0].key}"})
|
||||
.get @parts[0].name, (err, val) =>
|
||||
if err? or not val? or val.value.includes '\\' + exeName
|
||||
if err? or not val?
|
||||
callback(err)
|
||||
else
|
||||
@register callback
|
||||
|
||||
Reference in New Issue
Block a user