mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 15:13:56 -06:00
Use the right resource path for locating Qml resources
This commit is contained in:
parent
9888a6eb42
commit
f081bf4026
2 changed files with 5 additions and 1 deletions
|
@ -40,6 +40,7 @@ from . import MultiMaterialDecorator
|
|||
|
||||
from PyQt5.QtCore import pyqtSlot, QUrl, Qt, pyqtSignal, pyqtProperty, QEvent, Q_ENUMS
|
||||
from PyQt5.QtGui import QColor, QIcon
|
||||
from PyQt5.QtQml import qmlRegisterUncreatableType
|
||||
|
||||
import platform
|
||||
import sys
|
||||
|
@ -206,6 +207,8 @@ class CuraApplication(QtApplication):
|
|||
self._cura_actions = CuraActions.CuraActions(self)
|
||||
engine.rootContext().setContextProperty("CuraActions", self._cura_actions)
|
||||
|
||||
qmlRegisterUncreatableType(CuraApplication, "Cura", 1, 0, "ResourceTypes", "Just an Enum type")
|
||||
|
||||
def onSelectionChanged(self):
|
||||
if Selection.hasSelection():
|
||||
if not self.getController().getActiveTool():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue