mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-21 07:46:06 +08:00
fix(win-management): Focus existing win when renderer tries to open dup
This commit is contained in:
parent
6823a73575
commit
35274ef2b4
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue