mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Move message hide into terminate function
Always if we terminate we want to hide the old message. This fixes the message not hiding when using the tools. Contributes to issue CURA-1278.
This commit is contained in:
parent
ab2a6136d7
commit
83c1ea2ccc
1 changed files with 3 additions and 6 deletions
|
@ -129,12 +129,6 @@ class CuraEngineBackend(Backend):
|
|||
if self._slicing:
|
||||
self._terminate()
|
||||
|
||||
if self._message:
|
||||
self._message.hide()
|
||||
self._message = None
|
||||
|
||||
return
|
||||
|
||||
if self._process_layers_job:
|
||||
self._process_layers_job.abort()
|
||||
self._process_layers_job = None
|
||||
|
@ -181,6 +175,9 @@ class CuraEngineBackend(Backend):
|
|||
#self._createSocket() # Re create the socket
|
||||
except Exception as e: # terminating a process that is already terminating causes an exception, silently ignore this.
|
||||
Logger.log("d", "Exception occured while trying to kill the engine %s", str(e))
|
||||
if self._message:
|
||||
self._message.hide()
|
||||
self._message = None
|
||||
|
||||
|
||||
def _onStartSliceCompleted(self, job):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue