mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 14:34:01 -06:00
Fix generating view for machine action - CURA-4568
This commit is contained in:
parent
eeeefcc47a
commit
b961c37ead
1 changed files with 2 additions and 7 deletions
|
@ -24,9 +24,6 @@ class MachineAction(QObject, PluginObject):
|
|||
self._key = key
|
||||
self._label = label
|
||||
self._qml_url = ""
|
||||
|
||||
self._component = None
|
||||
self._context = None
|
||||
self._view = None
|
||||
self._finished = False
|
||||
|
||||
|
@ -50,7 +47,6 @@ class MachineAction(QObject, PluginObject):
|
|||
# /sa _reset
|
||||
@pyqtSlot()
|
||||
def reset(self):
|
||||
self._component = None
|
||||
self._finished = False
|
||||
self._reset()
|
||||
|
||||
|
@ -76,7 +72,6 @@ class MachineAction(QObject, PluginObject):
|
|||
|
||||
@pyqtProperty(QObject, constant = True)
|
||||
def displayItem(self):
|
||||
if not self._component:
|
||||
if not self._view:
|
||||
self._createViewFromQML()
|
||||
|
||||
return self._view
|
||||
return self._view
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue