fix(win-management): Focus existing win when renderer tries to open dup

This commit is contained in:
Ben Gotow 2016-04-28 11:31:42 -07:00
parent 6823a73575
commit 35274ef2b4

View file

@ -377,8 +377,9 @@ class Application
app.dock?.setBadge?(value)
ipcMain.on 'new-window', (event, options) =>
if options.windowKey
@windowManager.ensureWindow(options.windowKey, options)
if options.windowKey and win = @windowManager.get(options.windowKey)
win.show()
win.focus()
else
@windowManager.newWindow(options)