[UI Manager] add Configure Confirm Quit request
Depending on the modules states, it might not be desirable, that the user can close the application. The existing "Set Window Closeable State" request, makes it possible to prevent the shutdown of the application. However, the user can not be aware of the reasons behind.
For example, a user has made some changes in a configuration module, but didn't save them. In that case, a message like "you have unsaved changed - do you really want to quit the application?" is a common use case.
-
add Configure Confirm Quit request and hand over "Confirmation String" and "User Confirm? Boolean" -
save string and boolean to the MHL-SR and use in the "Shutdown Application" case -
remove the unneeded "Confirm Quit" case
Possible issue: multiple requests from different modules might get overwritten. If we would like to address this, UI Manager would need to ask the registered modules, which could have independent UI dialogues. But this seems much more difficult.
Edited by Alexander Elbert