mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Make an option to *always* restore the last session, no matter how Atom is invoked (#9643), part4: import cloneDeep directly from lodash
This commit is contained in:
@@ -15,6 +15,7 @@ net = require 'net'
|
||||
url = require 'url'
|
||||
{EventEmitter} = require 'events'
|
||||
_ = require 'underscore-plus'
|
||||
cloneDeep = require 'lodash.clonedeep'
|
||||
FindParentDir = null
|
||||
Resolve = null
|
||||
|
||||
@@ -112,7 +113,7 @@ class AtomApplication
|
||||
launch: (options) ->
|
||||
if options.pathsToOpen?.length > 0 or options.urlsToOpen?.length > 0 or options.test or options.benchmark or options.benchmarkTest
|
||||
if @config.get('core.restorePreviousWindowsOnStart') is 'always'
|
||||
@loadState(_.cloneDeep(options))
|
||||
@loadState(cloneDeep(options))
|
||||
@openWithOptions(options)
|
||||
else
|
||||
@loadState(options) or @openPath(options)
|
||||
|
||||
Reference in New Issue
Block a user