mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
🎨
This commit is contained in:
@@ -306,7 +306,7 @@ class AtomEnvironment extends Model
|
||||
@project = null
|
||||
@commands.clear()
|
||||
@stylesElement.remove()
|
||||
@config.destroy()
|
||||
@config.unobserveUserConfig()
|
||||
|
||||
@uninstallWindowEventHandler()
|
||||
|
||||
|
||||
@@ -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 = []
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -360,10 +360,6 @@ class Config
|
||||
@save()
|
||||
debouncedSave = _.debounce(save, 100)
|
||||
|
||||
destroy: ->
|
||||
@clear()
|
||||
@unobserveUserConfig()
|
||||
|
||||
shouldNotAccessFileSystem: -> not @enablePersistence
|
||||
|
||||
###
|
||||
|
||||
Reference in New Issue
Block a user