src/eric7/Plugins/WizardPlugins/EricPluginWizard/PluginWizardDialog.py

branch
eric7
changeset 11277
002e62035d8e
parent 11275
933c08329e8b
child 11278
aaf85a74ea45
--- 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

eric ide

mercurial