Abort processing in a non-modal state for UXP plugins
When Photoshop is in a modal state during executeAsModal() then the entire UI thread is blocked. That makes it hard for me to improve the user experience with my UXP Photoshop plugin. I program extensive layer blending operations for star trail processing. This can easily take many minutes or hours once started depending on file size and quantitiy of imported photos. Since mouse clicks cannot be processed at all during modal state and hence the UI is not responding I wonder if there is another "hack" to introduce a Cancel button rather than just pressing the escape keyboard button to abort operations.
Does anybody know whether this will ever be possible somehow in the future? As much as I understand that modal state is not a bad thing I'm not happy with the user experience. The fact that running operations can't be stopped from a user interface is annoying.
However, I know... there are worse things after all... 😉
