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