mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 15:37:46 +03:00
Move window.deserializeEditorWindow to Atom class
This commit is contained in:
parent
17be036ff8
commit
79b84b2433
@ -11,7 +11,7 @@ describe "Window", ->
|
|||||||
atom.loadSettings.initialPath = atom.project.getPath()
|
atom.loadSettings.initialPath = atom.project.getPath()
|
||||||
atom.project.destroy()
|
atom.project.destroy()
|
||||||
windowEventHandler = new WindowEventHandler()
|
windowEventHandler = new WindowEventHandler()
|
||||||
window.deserializeEditorWindow()
|
atom.deserializeEditorWindow()
|
||||||
projectPath = atom.project.getPath()
|
projectPath = atom.project.getPath()
|
||||||
|
|
||||||
afterEach ->
|
afterEach ->
|
||||||
|
@ -132,6 +132,11 @@ class Atom
|
|||||||
@packages.packageStates = state.getObject('packageStates') ? {}
|
@packages.packageStates = state.getObject('packageStates') ? {}
|
||||||
state.remove('packageStates')
|
state.remove('packageStates')
|
||||||
|
|
||||||
|
deserializeEditorWindow: ->
|
||||||
|
@deserializePackageStates()
|
||||||
|
@deserializeProject()
|
||||||
|
@deserializeRootView()
|
||||||
|
|
||||||
loadThemes: ->
|
loadThemes: ->
|
||||||
@themes.load()
|
@themes.load()
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ window.startEditorWindow = ->
|
|||||||
atom.keymap.loadBundledKeymaps()
|
atom.keymap.loadBundledKeymaps()
|
||||||
atom.themes.loadBaseStylesheets()
|
atom.themes.loadBaseStylesheets()
|
||||||
atom.packages.loadPackages()
|
atom.packages.loadPackages()
|
||||||
deserializeEditorWindow()
|
atom.deserializeEditorWindow()
|
||||||
atom.packages.activate()
|
atom.packages.activate()
|
||||||
atom.keymap.loadUserKeymap()
|
atom.keymap.loadUserKeymap()
|
||||||
atom.requireUserInitScript()
|
atom.requireUserInitScript()
|
||||||
@ -68,11 +68,6 @@ installApmCommand = (callback) ->
|
|||||||
commandPath = path.join(resourcePath, 'node_modules', '.bin', 'apm')
|
commandPath = path.join(resourcePath, 'node_modules', '.bin', 'apm')
|
||||||
require('./command-installer').install(commandPath, callback)
|
require('./command-installer').install(commandPath, callback)
|
||||||
|
|
||||||
window.deserializeEditorWindow = ->
|
|
||||||
atom.deserializePackageStates()
|
|
||||||
atom.deserializeProject()
|
|
||||||
atom.deserializeRootView()
|
|
||||||
|
|
||||||
window.onerror = ->
|
window.onerror = ->
|
||||||
atom.openDevTools()
|
atom.openDevTools()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user