mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-11 15:34:27 +08:00
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:
parent
2503263e93
commit
101831b71e
1 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue