mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Call open on model instead of view
This commit is contained in:
@@ -29,7 +29,7 @@ class WindowEventHandler
|
||||
|
||||
@subscribe $(window), 'window:open-path', (event, {pathToOpen, initialLine, initialColumn}) ->
|
||||
unless fs.isDirectorySync(pathToOpen)
|
||||
atom.workspaceView?.open(pathToOpen, {initialLine, initialColumn})
|
||||
atom.workspace?.open(pathToOpen, {initialLine, initialColumn})
|
||||
|
||||
@subscribe $(window), 'beforeunload', =>
|
||||
confirmed = atom.workspaceView?.confirmClose()
|
||||
|
||||
Reference in New Issue
Block a user