mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 11:39:02 +08:00
Update plugin's register functions to return the object instance instead of performing the registration themselves
This commit is contained in:
parent
bd4459709f
commit
020015cccc
@ -4,4 +4,4 @@ def getMetaData():
|
|||||||
return { "name": "LayerView", "type": "View" }
|
return { "name": "LayerView", "type": "View" }
|
||||||
|
|
||||||
def register(app):
|
def register(app):
|
||||||
app.getController().addView("LayerView", LayerView.LayerView())
|
return LayerView.LayerView()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user