mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 03:55:56 +08:00
Move sidebar controller init
This commit is contained in:
parent
e8f1073af8
commit
5eeb98bbcf
@ -207,14 +207,6 @@ class CuraApplication(QtApplication):
|
||||
self._setting_inheritance_manager = None
|
||||
self._simple_mode_settings_manager = None
|
||||
|
||||
## As of Cura 3.2, the sidebar is controlled by a controller.
|
||||
# This functionality was added to allow plugins registering custom sidebar views.
|
||||
self._sidebar_controller = SidebarController(self)
|
||||
|
||||
## Register the default settings sidebar manually
|
||||
settings_sidebar_view = SettingsSidebarView()
|
||||
self._sidebar_controller.addSidebarView(settings_sidebar_view)
|
||||
|
||||
self._additional_components = {} # Components to add to certain areas in the interface
|
||||
|
||||
super().__init__(name = "cura", version = CuraVersion, buildtype = CuraBuildType,
|
||||
@ -225,6 +217,14 @@ class CuraApplication(QtApplication):
|
||||
|
||||
self.setWindowIcon(QIcon(Resources.getPath(Resources.Images, "cura-icon.png")))
|
||||
|
||||
## As of Cura 3.2, the sidebar is controlled by a controller.
|
||||
# This functionality was added to allow plugins registering custom sidebar views.
|
||||
self._sidebar_controller = SidebarController(self)
|
||||
|
||||
## Register the default settings sidebar manually
|
||||
settings_sidebar_view = SettingsSidebarView()
|
||||
self._sidebar_controller.addSidebarView(settings_sidebar_view)
|
||||
|
||||
self.setRequiredPlugins([
|
||||
"CuraEngineBackend",
|
||||
"UserAgreement",
|
||||
|
Loading…
x
Reference in New Issue
Block a user