mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Only hide on close when focused
This commit is contained in:
@@ -25,7 +25,7 @@ class WindowEventHandler
|
||||
rootView?.open(pathToOpen, {initialLine}) unless fsUtils.isDirectorySync(pathToOpen)
|
||||
@subscribe $(window), 'beforeunload', =>
|
||||
confirmed = rootView?.confirmClose()
|
||||
atom.hide() if confirmed and not @reloadRequested
|
||||
atom.hide() if confirmed and not @reloadRequested and remote.getCurrentWindow().isWebViewFocused()
|
||||
@reloadRequested = false
|
||||
confirmed
|
||||
@subscribeToCommand $(window), 'window:toggle-full-screen', => atom.toggleFullScreen()
|
||||
|
||||
Reference in New Issue
Block a user