mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Add 'Close Empty Windows' option.'
This commit is contained in:
@@ -21,7 +21,6 @@ module.exports =
|
||||
followSymlinks:
|
||||
type: 'boolean'
|
||||
default: true
|
||||
title: 'Follow symlinks'
|
||||
description: 'Follow symbolic links when searching files and when opening files with the fuzzy finder.'
|
||||
disabledPackages:
|
||||
type: 'array'
|
||||
@@ -54,7 +53,12 @@ module.exports =
|
||||
destroyEmptyPanes:
|
||||
type: 'boolean'
|
||||
default: true
|
||||
description: 'When the last item of a pane is removed, remove that pane as well.'
|
||||
title: 'Remove Empty Panes'
|
||||
description: 'When the last tab of a pane is closed, remove that pane as well.'
|
||||
closeEmptyWindows:
|
||||
type: 'boolean'
|
||||
default: true
|
||||
description: 'When a window with no open tabs or panes is given the \'Close Tab\' command, close that window.'
|
||||
fileEncoding:
|
||||
description: 'Default character set encoding to use when reading and writing files.'
|
||||
type: 'string'
|
||||
|
||||
@@ -682,7 +682,7 @@ class Workspace extends Model
|
||||
@destroyActivePaneItem()
|
||||
else if @getPanes().length > 1
|
||||
@destroyActivePane()
|
||||
else
|
||||
else if @config.get('core.closeEmptyWindows')
|
||||
atom.close()
|
||||
|
||||
# Increase the editor font size by 1px.
|
||||
|
||||
Reference in New Issue
Block a user