diff --git a/src/plugins/pythoneditor/pythoneditorplugin.cpp b/src/plugins/pythoneditor/pythoneditorplugin.cpp index f3375a67c9a..713416491ff 100644 --- a/src/plugins/pythoneditor/pythoneditorplugin.cpp +++ b/src/plugins/pythoneditor/pythoneditorplugin.cpp @@ -311,6 +311,7 @@ public: { registerRunConfiguration("PythonEditor.RunConfiguration."); addSupportedProjectType(PythonProjectId); + addRunWorkerFactory(ProjectExplorer::Constants::NORMAL_RUN_MODE); } }; @@ -623,12 +624,6 @@ bool PythonEditorPlugin::initialize(const QStringList &arguments, QString *error ProjectManager::registerProjectType(PythonMimeType); - auto constraint = [](RunConfiguration *runConfiguration) { - auto aspect = runConfiguration->extraAspect(); - return aspect && !aspect->value().isEmpty(); - }; - RunControl::registerWorker(ProjectExplorer::Constants::NORMAL_RUN_MODE, constraint); - return true; }