-
Notifications
You must be signed in to change notification settings - Fork 30
Web eID dialog disposing
Mart Sõmermaa edited this page Jun 8, 2022
·
13 revisions
TODO: Add a diagram that depicts the call and event chains that cause the Web eID dialog to be disposed and deleted.
Dialog disposal is quite complex as there are a number of different scenarios that cause the disposal:
- retriable error occurs, user clicks Retry,
- fatal error occurs,
- user clicks Cancel on the dialog (window destroyed signal is connected to controller exit signal),
- user clicks OK on the dialog (window destroyed signal is connected to controller exit signal),
- user clicks Cancel on the PIN pad (window destroyed signal is connected to controller exit signal),
- user clicks OK on the PIN pad (window destroyed signal is connected to controller exit signal).
Connecting window destroyed signal to controller exit signal assures that the window has been properly disposed when the controller exits.