mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-11 16:57:51 -06:00
WIP: Make CuraPackageManager aggregate PluginRegistry data
CURA-4644
This commit is contained in:
parent
f510603cb5
commit
0f966115e6
5 changed files with 83 additions and 53 deletions
|
@ -100,7 +100,6 @@ from PyQt5.QtWidgets import QMessageBox
|
|||
from PyQt5.QtQml import qmlRegisterUncreatableType, qmlRegisterSingletonType, qmlRegisterType
|
||||
|
||||
import sys
|
||||
import os.path
|
||||
import numpy
|
||||
import copy
|
||||
import os
|
||||
|
@ -248,6 +247,8 @@ class CuraApplication(QtApplication):
|
|||
|
||||
self.initialize()
|
||||
|
||||
self._cura_package_manager.getAllInstalledPackagesInfo()
|
||||
|
||||
# FOR TESTING ONLY
|
||||
if kwargs["parsed_command_line"].get("trigger_early_crash", False):
|
||||
assert not "This crash is triggered by the trigger_early_crash command line argument."
|
||||
|
@ -395,8 +396,6 @@ class CuraApplication(QtApplication):
|
|||
self.globalContainerStackChanged.connect(self._onGlobalContainerChanged)
|
||||
self._onGlobalContainerChanged()
|
||||
|
||||
self._plugin_registry.addSupportedPluginExtension("curaplugin", "Cura Plugin")
|
||||
|
||||
self.getCuraSceneController().setActiveBuildPlate(0) # Initialize
|
||||
|
||||
self._quality_profile_drop_down_menu_model = None
|
||||
|
@ -404,7 +403,6 @@ class CuraApplication(QtApplication):
|
|||
|
||||
CuraApplication.Created = True
|
||||
|
||||
|
||||
def _onEngineCreated(self):
|
||||
self._engine.addImageProvider("camera", CameraImageProvider.CameraImageProvider())
|
||||
|
||||
|
@ -508,11 +506,6 @@ class CuraApplication(QtApplication):
|
|||
def getStaticVersion(cls):
|
||||
return CuraVersion
|
||||
|
||||
## Handle removing the unneeded plugins
|
||||
# \sa PluginRegistry
|
||||
def _removePlugins(self):
|
||||
self._plugin_registry.removePlugins()
|
||||
|
||||
## Handle loading of all plugin types (and the backend explicitly)
|
||||
# \sa PluginRegistry
|
||||
def _loadPlugins(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue