mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-02 02:53:01 +08:00
fix(draft): delay draft re-opening w/ errors to allow time to close
This commit is contained in:
parent
01814473f5
commit
7daee5ce0f
1 changed files with 4 additions and 1 deletions
|
@ -372,9 +372,12 @@ class DraftStore
|
|||
# We delay so the view has time to update the restored draft. If we
|
||||
# don't delay the modal may come up in a state where the draft looks
|
||||
# like it hasn't been restored or has been lost.
|
||||
#
|
||||
# We also need to delay because the old draft window needs to fully
|
||||
# close. It takes windows currently (June 2016) 100ms to close by
|
||||
_.delay =>
|
||||
@_notifyUserOfError({draftClientId, threadId, errorMessage})
|
||||
, 100
|
||||
, 300
|
||||
|
||||
_isPopout: ->
|
||||
NylasEnv.getWindowType() is "composer"
|
||||
|
|
Loading…
Reference in a new issue