This commit is contained in:
Antonio Scandurra
2015-11-03 09:55:29 +01:00
parent 6290822067
commit b5226ad420
4 changed files with 1 additions and 12 deletions

View File

@@ -306,7 +306,7 @@ class AtomEnvironment extends Model
@project = null
@commands.clear()
@stylesElement.remove()
@config.destroy()
@config.unobserveUserConfig()
@uninstallWindowEventHandler()

View File

@@ -212,7 +212,6 @@ class AtomApplication
@openPathOnEvent('application:open-license', path.join(process.resourcesPath, 'LICENSE.md'))
app.on 'before-quit', =>
@saveBlobStore()
@saveState(false)
@quitting = true
@@ -434,9 +433,6 @@ class AtomApplication
console.log("Killing process #{pid} failed: #{error.code ? error.message}")
delete @pidsToOpenWindows[pid]
saveBlobStore: ->
@windows[0]?.saveBlobStore()
saveState: (allowEmpty=false) ->
return if @quitting
states = []

View File

@@ -75,9 +75,6 @@ class AtomWindow
hasPathToOpen = not (locationsToOpen.length is 1 and not locationsToOpen[0].pathToOpen?)
@openLocations(locationsToOpen) if hasPathToOpen and not @isSpecWindow()
saveBlobStore: ->
@browserWindow.webContents?.send('save-blob-store')
setLoadSettings: (loadSettingsObj) ->
# Ignore the windowState when passing loadSettings via URL, since it could
# be quite large.

View File

@@ -360,10 +360,6 @@ class Config
@save()
debouncedSave = _.debounce(save, 100)
destroy: ->
@clear()
@unobserveUserConfig()
shouldNotAccessFileSystem: -> not @enablePersistence
###