mirror of
https://github.com/atom/atom.git
synced 2026-02-08 13:45:09 -05:00
Move remaining workspace commands back to $::command temporarily
This commit is contained in:
@@ -107,6 +107,9 @@ class WorkspaceElement extends HTMLElement
|
||||
'core:save-as': -> @getModel().saveActivePaneItemAs()
|
||||
)
|
||||
|
||||
if process.platform is 'darwin'
|
||||
addCommands 'window:install-shell-commands': -> @getModel().installShellCommands()
|
||||
|
||||
getModel: -> @model
|
||||
|
||||
setModel: (@model) ->
|
||||
@@ -135,9 +138,6 @@ class WorkspaceElement extends HTMLElement
|
||||
handleWindowFocus: (event) ->
|
||||
@handleFocus(event) if document.activeElement is document.body
|
||||
|
||||
if process.platform is 'darwin'
|
||||
atom.commands.add '.workspace', 'window:install-shell-commands', -> @getModel().installShellCommands()
|
||||
|
||||
module.exports = WorkspaceElement = document.registerElement 'atom-workspace',
|
||||
prototype: WorkspaceElement.prototype
|
||||
extends: 'div'
|
||||
|
||||
Reference in New Issue
Block a user