11-13-2020, 01:05 PM
I have a base class for preferences that, on startup, checks if there's an update available for the plugin. If there is, it displays a dialog for the user offering to fetch the update.
The problem is, under Windows, the dialog sometimes appears behind the splash screen and to the user, it seems like Illustrator froze as it was launching. It works fine in Mac OS, BTW. Is there any way to force a dialog window in Windows to become frontmost?
I thought I had a workaround, but that failed:
Using a timer, I could have that dialog automatically dismiss after a period of time, or have the plugin check for updates shortly after the plugin loads, except that to register the timer I need access to the plugin instance. This class is sub-classed and then referenced by any number of other plugins, so I can't get to its this->__corePlug to access the dispatcher.
For now, I'm afraid I have to stop informing Windows users of available updates.
Any suggestions would be much appreciated!
The problem is, under Windows, the dialog sometimes appears behind the splash screen and to the user, it seems like Illustrator froze as it was launching. It works fine in Mac OS, BTW. Is there any way to force a dialog window in Windows to become frontmost?
I thought I had a workaround, but that failed:
Using a timer, I could have that dialog automatically dismiss after a period of time, or have the plugin check for updates shortly after the plugin loads, except that to register the timer I need access to the plugin instance. This class is sub-classed and then referenced by any number of other plugins, so I can't get to its this->__corePlug to access the dispatcher.
For now, I'm afraid I have to stop informing Windows users of available updates.
Any suggestions would be much appreciated!