Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.Core/FileFormats/SL1File.cs')
-rw-r--r--UVtools.Core/FileFormats/SL1File.cs25
1 files changed, 13 insertions, 12 deletions
diff --git a/UVtools.Core/FileFormats/SL1File.cs b/UVtools.Core/FileFormats/SL1File.cs
index 0c083bc..7f854f1 100644
--- a/UVtools.Core/FileFormats/SL1File.cs
+++ b/UVtools.Core/FileFormats/SL1File.cs
@@ -628,18 +628,19 @@ namespace UVtools.Core.FileFormats
throw new FileLoadException($"Malformed file: {IniPrusaslicer} is missing.");
}
- SuppressRebuildProperties = true;
- BottomLiftHeight = LookupCustomValue(Keyword_BottomLiftHeight, DefaultBottomLiftHeight);
- BottomLiftSpeed = LookupCustomValue(Keyword_BottomLiftSpeed, DefaultBottomLiftSpeed);
- LiftHeight = LookupCustomValue(Keyword_LiftHeight, DefaultLiftHeight);
- LiftSpeed = LookupCustomValue(Keyword_LiftSpeed, DefaultLiftSpeed);
- RetractSpeed = LookupCustomValue(Keyword_RetractSpeed, DefaultRetractSpeed);
- BottomLightOffDelay = LookupCustomValue(Keyword_BottomLightOffDelay, DefaultBottomLightOffDelay);
- LightOffDelay = LookupCustomValue(Keyword_LightOffDelay, DefaultLightOffDelay);
- BottomLightPWM = LookupCustomValue(Keyword_BottomLightPWM, DefaultLightPWM);
- LightPWM = LookupCustomValue(Keyword_LightPWM, DefaultBottomLightPWM);
- SuppressRebuildProperties = false;
-
+ SuppressRebuildPropertiesWork(() =>
+ {
+ BottomLiftHeight = LookupCustomValue(Keyword_BottomLiftHeight, DefaultBottomLiftHeight);
+ BottomLiftSpeed = LookupCustomValue(Keyword_BottomLiftSpeed, DefaultBottomLiftSpeed);
+ LiftHeight = LookupCustomValue(Keyword_LiftHeight, DefaultLiftHeight);
+ LiftSpeed = LookupCustomValue(Keyword_LiftSpeed, DefaultLiftSpeed);
+ RetractSpeed = LookupCustomValue(Keyword_RetractSpeed, DefaultRetractSpeed);
+ BottomLightOffDelay = LookupCustomValue(Keyword_BottomLightOffDelay, DefaultBottomLightOffDelay);
+ LightOffDelay = LookupCustomValue(Keyword_LightOffDelay, DefaultLightOffDelay);
+ BottomLightPWM = LookupCustomValue(Keyword_BottomLightPWM, DefaultLightPWM);
+ LightPWM = LookupCustomValue(Keyword_LightPWM, DefaultBottomLightPWM);
+ });
+
LayerManager = new LayerManager((uint) (OutputConfigSettings.NumSlow + OutputConfigSettings.NumFast), this);
progress.ItemCount = LayerCount;