mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Testing tweaks to operate Atom in single window mode
This commit is contained in:
@@ -41,7 +41,7 @@ windowAdditions =
|
||||
# Note: RootView assigns itself on window on initialization so that
|
||||
# window.rootView is available when loading user configuration
|
||||
attachRootView: (pathToOpen) ->
|
||||
if rootViewState = atom.rootViewStates[$windowNumber]
|
||||
if rootViewState = atom.rootViewStates?[$windowNumber]
|
||||
RootView.deserialize(JSON.parse(rootViewState))
|
||||
else
|
||||
new RootView(pathToOpen)
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
# Like sands through the hourglass, so are the days of our lives.
|
||||
require 'window'
|
||||
Atom = require 'atom'
|
||||
window.atom = new Atom(atom.loadPath, $native)
|
||||
window.startup $pathToOpen
|
||||
|
||||
|
||||
Reference in New Issue
Block a user