fix(feedback-window): Close correctly when in fullscreen mode

- Now shows main window when feedback window is closed/hidden
- Fixes #615
This commit is contained in:
Juan Tejada 2015-12-20 13:11:58 -08:00
parent 2503263e93
commit 101831b71e

View file

@ -157,7 +157,7 @@ class WindowManager
Feedback window
###
showFeedbackWindow: ({x, y, width, height, params}) ->
showFeedbackWindow: ({x, y, width, height, params}) =>
if @feedbackWindow
@feedbackWindow.show()
else
@ -177,11 +177,12 @@ class WindowManager
event.preventDefault()
# Disable window close, hide instead
w.on 'close', (event) ->
w.on 'close', (event) =>
unless global.application.quitting
event.preventDefault()
w.hide()
w.on 'closed', (event) ->
@showMainWindow()
w.on 'closed', (event) =>
@feedbackWindow = null
w.webContents.on('new-window', onOpenURL)