-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path__init__.py
More file actions
18 lines (15 loc) · 747 Bytes
/
__init__.py
File metadata and controls
18 lines (15 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Copyright (c) 2021 Creality
# Uranium is released under the terms of the LGPLv3 or higher.
from . import CrealityCloudOutputDevicePlugin
from . import CrealityCloudModelBrowserPlugin
from UM.Application import Application
from . CrealityCloudUtils import CrealityCloudUtils
def getMetaData():
return{}
def _onEngineCreated():
Application.getInstance()._qml_engine.rootContext().setContextProperty("CloudUtils", CrealityCloudUtils.getInstance())
def register(app):
Application.getInstance().engineCreatedSignal.connect(_onEngineCreated)
return { "output_device": CrealityCloudOutputDevicePlugin.CrealityCloudOutputDevicePlugin(),
"extension": CrealityCloudModelBrowserPlugin.CrealityCloudModelBrowserPlugin()
}