mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Prevent the backend attempting to reslice everytime a preference changed
This commit is contained in:
parent
d891d30ab8
commit
8bff0d17e8
2 changed files with 8 additions and 3 deletions
|
@ -229,6 +229,7 @@ class CuraEngineBackend(QObject, Backend):
|
||||||
if not self._build_plates_to_be_sliced:
|
if not self._build_plates_to_be_sliced:
|
||||||
self.processingProgress.emit(1.0)
|
self.processingProgress.emit(1.0)
|
||||||
Logger.log("w", "Slice unnecessary, nothing has changed that needs reslicing.")
|
Logger.log("w", "Slice unnecessary, nothing has changed that needs reslicing.")
|
||||||
|
self.setState(BackendState.Done)
|
||||||
return
|
return
|
||||||
|
|
||||||
if self._process_layers_job:
|
if self._process_layers_job:
|
||||||
|
|
|
@ -134,6 +134,9 @@ Column
|
||||||
onPreferenceChanged:
|
onPreferenceChanged:
|
||||||
{
|
{
|
||||||
var autoSlice = UM.Preferences.getValue("general/auto_slice")
|
var autoSlice = UM.Preferences.getValue("general/auto_slice")
|
||||||
|
print(prepareButtons.autoSlice, autoSlice)
|
||||||
|
if(prepareButtons.autoSlice != autoSlice)
|
||||||
|
{
|
||||||
prepareButtons.autoSlice = autoSlice
|
prepareButtons.autoSlice = autoSlice
|
||||||
if(autoSlice)
|
if(autoSlice)
|
||||||
{
|
{
|
||||||
|
@ -141,6 +144,7 @@ Column
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Shortcut for "slice/stop"
|
// Shortcut for "slice/stop"
|
||||||
Controls1.Action
|
Controls1.Action
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue