Hot Door CORE Forum

Full Version: tool autoShowPrefsDialog not showing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have several tool plugins with preferences dialogs, all implemented in the same way (as far as I can tell), but for one of them the prefs dialog doesn't show when the tool icon is double-clicked in the Illustrator toolbox. I understand it's enabled by default, but it still doesn't show after it's manually enabled like so when created in startup:

this->__myTool.setPrefsDialog(myPrefs->myPrefsMD);
this->__myTool.setAutoShowPrefsDialog(true);
HDI_CORE_PLUGIN->setPrefsDialog(myPrefs->myPrefsMD);


The dialog is defined in the public area of the prefs class and works normally when selected from the menu. After spending many hours checking and testing to solve this, I'd greatly appreciate any suggestions on how I might trace what's happening (or not) when the tool is double-clicked. The problem happens on both Mac and Windows.
I found the problem.

HDI_CORE_PLUGIN->setPrefsDialog(myPrefs->myPrefsMD);

This should be replaced with:

this->__myTool.setPrefsDialog(myPrefs->myPrefsMD);