mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Give the view a chance to update before presenting next dialog
This commit is contained in:
committed by
probablycorey
parent
f0398f2331
commit
e4bf73b41c
@@ -131,7 +131,8 @@ _.extend atom,
|
||||
@pendingModals.push([]) # prioritize any modals presented during dismiss callback
|
||||
fn?(args...)
|
||||
@presentingModal = false
|
||||
@presentModal(fn) if fn = @shiftPendingModal()
|
||||
if fn = @shiftPendingModal()
|
||||
_.delay (=> @presentModal(fn)), 50 # let view update before next dialog
|
||||
|
||||
pushPendingModal: (fn) ->
|
||||
# pendingModals is a stack of queues. enqueue to top of stack.
|
||||
|
||||
Reference in New Issue
Block a user