mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 02:03:07 +08:00
fix(atom): Put displayWindow back - it's used in other places
This commit is contained in:
parent
35cb3a986f
commit
d76766fa38
1 changed files with 6 additions and 3 deletions
|
@ -608,9 +608,7 @@ class Atom extends Model
|
||||||
|
|
||||||
dimensions = @restoreWindowDimensions()
|
dimensions = @restoreWindowDimensions()
|
||||||
maximize = dimensions?.maximized and process.platform isnt 'darwin'
|
maximize = dimensions?.maximized and process.platform isnt 'darwin'
|
||||||
@show()
|
@displayWindow({maximize})
|
||||||
@focus()
|
|
||||||
@maximize() if maximize
|
|
||||||
|
|
||||||
cover = document.getElementById("application-loading-cover")
|
cover = document.getElementById("application-loading-cover")
|
||||||
wait = (time, fn) -> setTimeout(fn, time)
|
wait = (time, fn) -> setTimeout(fn, time)
|
||||||
|
@ -705,6 +703,11 @@ class Atom extends Model
|
||||||
Section: Messaging the User
|
Section: Messaging the User
|
||||||
###
|
###
|
||||||
|
|
||||||
|
displayWindow: ({maximize} = {}) ->
|
||||||
|
@show()
|
||||||
|
@focus()
|
||||||
|
@maximize() if maximize
|
||||||
|
|
||||||
# Essential: Visually and audibly trigger a beep.
|
# Essential: Visually and audibly trigger a beep.
|
||||||
beep: ->
|
beep: ->
|
||||||
shell.beep() if @config.get('core.audioBeep')
|
shell.beep() if @config.get('core.audioBeep')
|
||||||
|
|
Loading…
Reference in a new issue