Prevent Closing Apps

Started by Mario, June 15, 2017, 10:48:05 AM

Previous topic - Next topic

Mario

For the next release I have added a feature that enables app developers to ask IMatch to prompt the user before closing a modal (!) app.
The new option modalAllowClose in the app.json configuration will does the following:

If this setting is specified as false and the user tries to close a modal app dialog via the X button or <Alt>+<F4>, IMatch opens a message box:

The user can still close the app if he wants to, but at least he has been warned.



Apps are still closed when IMatch closes, and when the App Manager detects a change in the source files of an app, it will reload the app as before.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

ubacher

And if modalAllowClose is set to false? then what.

Mario

The setting is true by default. You set it to false to trigger the prompt.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

P.Jones

Quote from: Mario on June 15, 2017, 10:48:05 AM
For the next release I have added a feature that enables app developers to ask IMatch to prompt the user before closing a modal (!) app.
The new option modalAllowClose in the app.json configuration will does the following:

If this setting is specified as false and the user tries to close a modal app dialog via the X button or <Alt>+<F4>, IMatch opens a message box:

The user can still close the app if he wants to, but at least he has been warned.



Apps are still closed when IMatch closes, and when the App Manager detects a change in the source files of an app, it will reload the app as before.

Closing not cloing  8)

Mario

-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Carlo Didier