diff -r 0c252a7d814f -r 002e62035d8e src/eric7/Plugins/WizardPlugins/EricPluginWizard/PluginWizardDialog.py --- a/src/eric7/Plugins/WizardPlugins/EricPluginWizard/PluginWizardDialog.py Sat May 10 10:26:27 2025 +0200 +++ b/src/eric7/Plugins/WizardPlugins/EricPluginWizard/PluginWizardDialog.py Sat May 10 10:45:03 2025 +0200 @@ -26,8 +26,8 @@ installDependenciesTemplate, mainTemplate, moduleSetupTemplate, - onDemandTemplate, pluginTypeTemplate, + pluginTypeNameTemplate, previewPixmapTemplate, ) from .Ui_PluginWizardDialog import Ui_PluginWizardDialog @@ -186,21 +186,20 @@ templateData["config2"] = "" templateData["config3"] = "" + templateData["pluginType"] = ( + pluginTypeTemplate.format( + pluginType=self.pluginTypeCombo.currentText() + ) + if bool(self.pluginTypeCombo.currentText()) + else "" + ) + if self.autoActivateCheckBox.isChecked(): - templateData["onDemand"] = "" - templateData["pluginType"] = ( - pluginTypeTemplate.format( - pluginType=self.pluginTypeCombo.currentText() - ) - if bool(self.pluginTypeCombo.currentText()) - else "" - ) + templateData["pluginTypeName"] = "" else: - templateData["onDemand"] = onDemandTemplate.format( - pluginType=self.pluginTypeCombo.currentText(), + templateData["pluginTypeName"] = pluginTypeNameTemplate.format( pluginTypename=self.pluginTypeNameEdit.text(), ) - templateData["pluginType"] = "" if self.pixmapCheckBox.isChecked(): templateData["preview"] = previewPixmapTemplate