Hi,
I run a CLI module in the background in a customized loadable scripted module. And following here How to update the progress bar from a scripted CLI - #2 by strider_hunter, I create a progressDialog to show the progress.
Now I would like to know when the user clicks the cancel button of the progress bar so I can call cliNode.cancel() to kill the process of the CLI module. I checked the Status of clicking cancel but it is the same with interpreting the XML file (both are 2). So I am wondering how can I achieve this goal?
Thanks!