Make 'core:close' destroy the pane itself if it is empty

This commit is contained in:
Nathan Sobo
2014-01-15 04:34:35 -07:00
parent ca71bf224b
commit edf2fbe0e5
2 changed files with 6 additions and 2 deletions

View File

@@ -132,6 +132,10 @@ class Workspace extends Model
destroyActivePaneItem: ->
@activePane?.destroyActiveItem()
# Public: destroy/close the active pane.
destroyActivePane: ->
@activePane?.destroy()
# Private: Removes the item's uri from the list of potential items to reopen.
itemOpened: (item) ->
if uri = item.getUri?()