mirror of
https://github.com/atom/atom.git
synced 2026-02-14 00:25:08 -05:00
Don't close the window when the last editor is closed. Focus the root view instead.
This commit is contained in:
@@ -66,7 +66,7 @@ class RootView extends View
|
||||
if @editors().length
|
||||
@editors()[0].focus()
|
||||
else
|
||||
window.close()
|
||||
@focus()
|
||||
|
||||
setTitle: (title='untitled') ->
|
||||
document.title = title
|
||||
|
||||
Reference in New Issue
Block a user