mirror of
https://github.com/atom/atom.git
synced 2026-02-02 10:45:14 -05:00
Move show() to atom.coffee
Co-locates it with hide() and focus() which are similar.
This commit is contained in:
@@ -206,6 +206,9 @@ window.atom =
|
||||
focus: ->
|
||||
remote.getCurrentWindow().focus()
|
||||
|
||||
show: ->
|
||||
remote.getCurrentWindow().show()
|
||||
|
||||
hide: ->
|
||||
remote.getCurrentWindow().hide()
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ window.startEditorWindow = ->
|
||||
keymap.loadUserKeymaps()
|
||||
atom.requireUserInitScript()
|
||||
$(window).on 'unload', -> unloadEditorWindow(); false
|
||||
remote.getCurrentWindow().show()
|
||||
atom.show()
|
||||
atom.focus()
|
||||
|
||||
window.startConfigWindow = ->
|
||||
@@ -68,7 +68,7 @@ window.startConfigWindow = ->
|
||||
atom.activatePackageConfigs()
|
||||
keymap.loadUserKeymaps()
|
||||
$(window).on 'unload', -> unloadConfigWindow(); false
|
||||
remote.getCurrentWindow().show()
|
||||
atom.show()
|
||||
atom.focus()
|
||||
|
||||
window.unloadEditorWindow = ->
|
||||
|
||||
Reference in New Issue
Block a user