mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
D5: Moved loading files code
This commit is contained in:
parent
cd7979e301
commit
c18b3149da
5 changed files with 24 additions and 79 deletions
|
@ -188,6 +188,13 @@ class CuraEngineBackend(Backend):
|
|||
self._start_slice_job.start()
|
||||
self._start_slice_job.finished.connect(self._onStartSliceCompleted)
|
||||
|
||||
def pauseSlicing(self):
|
||||
self.close()
|
||||
self.backendStateChange.emit(BackendState.SlicingDisabled)
|
||||
|
||||
def continueSlicing(self):
|
||||
self.backendStateChange.emit(BackendState.NotStarted)
|
||||
|
||||
def _onBackendStateChanged(self, state):
|
||||
if state == BackendState.SlicingDisabled:
|
||||
self._pause_slicing = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue