Closed programming-kid closed 9 years ago
When would you ever have more than one modal dialog open at a time?
You could also wire/fire an event to close the dialogs.
I'd also argue that stuff like this can easy be considered an additional library/module - you're getting in to "window manager" territory here, and that's baggage that people should opt in to and not have to pull in every time they want to present a dialog.
I agree
How would one create an event to close the dialogs? Where do I find a handle for open dialogs? I think I have a similar situation as the original poster, where when connectivity is restored, I want to close the dialogs that have been opened indicating the connection is down.
Why can't you keep that handle yourself in whatever spot is responsible for detecting a connectivity problem and raising the dialog?
there has to be a global function
closeAll()
to close all open dialogs at oncethanks