I'd like to show the plugin config dialog when my plugin is enabled from within in __init__ function if a condition is met - is this possible?
Here's the code:
Code: Select all
def __init__(self, pluginId, pluginDisplayName, pluginVersion, pluginPrefs):
indigo.PluginBase.__init__(self, pluginId, pluginDisplayName, pluginVersion, pluginPrefs)
self.debug = True
self.lightwaveRfUdpPort = 9760
if not self.pluginPrefs.has_key("verboseDebug"):
** SHOW THE DIALOG HERE **