Fix mismatched setting name
Esse commit está contido em:
@@ -288,13 +288,13 @@ describe "WorkspaceView", ->
|
||||
expect(atom.workspaceView.getPaneViews()).toHaveLength 1
|
||||
|
||||
it "closes the window after the last pane is closed if closeWindowAfterLastItem is true", ->
|
||||
atom.config.set('core.closeWindowAfterLastPane', true)
|
||||
atom.config.set('core.closeWindowAfterLastItem', true)
|
||||
atom.workspaceView.trigger('core:close')
|
||||
spyOn(atom, 'close')
|
||||
expect(atom.close).toHaveBeenCalled()
|
||||
|
||||
it "does not close the window after the last pane if closeWindowAfterLastItem is untrue", ->
|
||||
atom.config.set('core.closeWindowAfterLastPane', false)
|
||||
atom.config.set('core.closeWindowAfterLastItem', false)
|
||||
atom.workspaceView.trigger('core:close')
|
||||
spyOn(atom, 'close')
|
||||
expect(atom.close).not.toHaveBeenCalled()
|
||||
|
||||
@@ -160,7 +160,9 @@ class WorkspaceView extends View
|
||||
@destroyActivePaneItem()
|
||||
else
|
||||
@destroyActivePane()
|
||||
atom.close() if atom.config.get('core.closeWindowAfterLastPane')
|
||||
|
||||
if atom.config.get('core.closeWindowAfterLastItem') and not @getModel().getActivePaneItem()
|
||||
atom.close()
|
||||
|
||||
@command 'core:save', => @saveActivePaneItem()
|
||||
@command 'core:save-as', => @saveActivePaneItemAs()
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário