Adobe-CEP / CEP-Resources

Tools and documentation for building Creative Cloud app extensions with CEP
https://www.adobe.io/apis/creativecloud/cep.html
1.61k stars 824 forks source link

Opening more than one ModalDialog in Illustrator #87

Open civas opened 7 years ago

civas commented 7 years ago

Hi. I am having an issues when trying to open more than one ModalDialog in Illustrator.

Workflow: 1) Open Panel window 2) In Panel have a button that opens ModalDialog window using requestOpenExtension() function 3) In opened ModalDialog window have a button that opens another ModalDialog using the same function

In most of cases everything is opened and works as expected.

In some cases when I try to open second ModalDialog, click event is detected but ModalDialog does not open. Only when I double click the button, ModalDialog opens but it’s an empty window, I can’t even debug the extension since it’s not loaded.

Note: if I set the first ModalDialog as Modeless everything seems to be working fine but this is not the best solution for my workflow.

Tests have been done on Illustrator cc2014, cc2015 and cc2015.3 on following operating systems:

Win 7 – works perfectly on every Illustrator version Win 8.1 – works perfectly on every Illustrator version Win 10 – works perfectly on every Illustrator version

OS X 10.9 (Mavericks) - works perfectly on every Illustrator version OS X 10.10 (Yosemite) - works perfectly on every Illustrator version OS X 10.11 (El Capitan)

OS X 10.12 (Sierra)

note: All Illustrator versions are latest.

Will this issue be fixed, or older versions of Illustrator are not maintained?

Regards, Vanja

venpa commented 7 years ago

@civas : Thanks for reporting this issue. Can you please share your extension's code to reproduce this issue?

civas commented 7 years ago

@venpa here is small extension that I used for testing.

OpenModal.zip