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()
|
||||
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')
|
||||
|
|
Loading…
Reference in a new issue