Our application has an automatic update facility that triggers the Bitrock autoupdater silently in the background. If an update is available we show a dialog to the user asking whether they wish to update now; if they click yes, we spawn another instance of the autoupdater (in download mode) and exit the application.
This is all working, but sometimes our application exit takes longer than expected (e.g. when it prompts the user with a "do you want to save..." type dialog) and occasionally it sticks around in the background. This means it's not actually finished exiting by the time the autoupdater has finished downloading the update installer and triggered it (via postUpdateDownloadActionList).
So, we have implemented a processTest to detect whether the application is running, which works fine. But we would like to give the user the following choices:
- Retry (I will close the application myself)
- Kill (Attempt to force the application to close)
- Cancel (Abandon the installation)
The most intuitive way to present these options would be a dialog with three buttons, but the showQuestion dialog only allows two buttons with "Yes" and "No".
We can use a showChoiceQuestion dialog for now, but we feel that the fact it's a drop-down box containing the options is not the ideal user experience.
Is there any way we can provide a dialog with three buttons?
Please sign in to leave a comment.