probeDialog fix
This commit is contained in:
@@ -95,7 +95,13 @@
|
||||
?.toMetric();
|
||||
|
||||
$: if (open) {
|
||||
cutterDiameterString = localStorage.getItem("cutterDiameter") ?? "";
|
||||
if(!cutterDiameterString){
|
||||
cutterDiameterString = localStorage.getItem("cutterDiameter") ?? "";
|
||||
}
|
||||
|
||||
if(!cutterDiameterRotaryString){
|
||||
cutterDiameterRotaryString = localStorage.getItem("cutterDiameterRotary") ?? "";
|
||||
}
|
||||
|
||||
// Svelte appears not to like it when you invoke
|
||||
// an async function from a reactive statement, so we
|
||||
@@ -107,15 +113,6 @@
|
||||
updateButtons();
|
||||
}
|
||||
|
||||
$: if (open) {
|
||||
cutterDiameterRotaryString = localStorage.getItem("cutterDiameterRotary") ?? "";
|
||||
|
||||
// Svelte appears not to like it when you invoke
|
||||
// an async function from a reactive statement, so we
|
||||
// use requestAnimationFrame to call 'begin' at a later moment.
|
||||
requestAnimationFrame(begin);
|
||||
}
|
||||
|
||||
$: if (cutterDiameterRotaryString) {
|
||||
updateButtons();
|
||||
}
|
||||
@@ -411,7 +408,7 @@
|
||||
/>
|
||||
{/if}
|
||||
{:else if currentStep === "BitDimensions"}
|
||||
{#if probeType !== "xyz"}
|
||||
{#if probeType === "xyz"}
|
||||
<TextFieldWithOptions
|
||||
label="Cutter diameter"
|
||||
variant="filled"
|
||||
|
||||
Reference in New Issue
Block a user