fix(win10): Prevent duplicate taskbar items

Fixes #368, #184

Related to #351
This commit is contained in:
Ben Gotow 2015-11-06 12:11:45 -08:00
parent 0fae7ce13c
commit bfb16bbe1a

View file

@ -17,6 +17,9 @@ start = ->
squirrelCommand = process.argv[1]
return if SquirrelUpdate.handleStartupEvent(app, squirrelCommand)
# This prevents Win10 from showing dupe items in the taskbar
app.setAppUserModelId('com.squirrel.nylas.nylas')
addPathToOpen = (event, pathToOpen) ->
event.preventDefault()
args.pathsToOpen.push(pathToOpen)