mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-09-02 16:52:31 +00:00
prevent from changing tool on homepage
This commit is contained in:
@@ -36,11 +36,13 @@
|
|||||||
let elevationFill = writable<'slope' | 'surface' | undefined>(undefined);
|
let elevationFill = writable<'slope' | 'surface' | undefined>(undefined);
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
currentTool.set(Tool.SCISSORS);
|
$currentTool = Tool.SCISSORS;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$: $currentTool, ($currentTool = Tool.SCISSORS);
|
||||||
|
|
||||||
onDestroy(() => {
|
onDestroy(() => {
|
||||||
currentTool.set(null);
|
$currentTool = null;
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user