Ensure that first start machine actions model gets initialized

CURA-6932
This commit is contained in:
Jaime van Kessel 2019-10-28 16:33:08 +01:00
parent 9906d454ce
commit 26ba0e645a
No known key found for this signature in database
GPG key ID: 3710727397403C91
2 changed files with 4 additions and 2 deletions

View file

@ -880,6 +880,8 @@ class CuraApplication(QtApplication):
def getFirstStartMachineActionsModel(self, *args) -> "FirstStartMachineActionsModel":
if self._first_start_machine_actions_model is None:
self._first_start_machine_actions_model = FirstStartMachineActionsModel(self, parent = self)
if self.started:
self._first_start_machine_actions_model.initialize()
return self._first_start_machine_actions_model
@pyqtSlot(result = QObject)