fix(atom): Put displayWindow back - it's used in other places

This commit is contained in:
Ben Gotow 2015-08-28 12:25:39 -07:00
parent 08da848c34
commit 5e0ef3946c

View file

@ -608,9 +608,7 @@ class Atom extends Model
dimensions = @restoreWindowDimensions()
maximize = dimensions?.maximized and process.platform isnt 'darwin'
@show()
@focus()
@maximize() if maximize
@displayWindow({maximize})
cover = document.getElementById("application-loading-cover")
wait = (time, fn) -> setTimeout(fn, time)
@ -705,6 +703,11 @@ class Atom extends Model
Section: Messaging the User
###
displayWindow: ({maximize} = {}) ->
@show()
@focus()
@maximize() if maximize
# Essential: Visually and audibly trigger a beep.
beep: ->
shell.beep() if @config.get('core.audioBeep')