probeDialog fix

This commit is contained in:
sanjayk03-dev
2024-12-15 01:35:53 +05:30
parent ea1eafee70
commit 7d225c2b4e

View File

@@ -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"