diff --git a/src/components/Settings.svelte b/src/components/Settings.svelte index 1485dcc..7e86f79 100644 --- a/src/components/Settings.svelte +++ b/src/components/Settings.svelte @@ -8,7 +8,10 @@ setHash, resetHash, } from 'src/stores/settings' - import { redraw as redrawStore } from 'src/stores/refresh' + import { + redraw as redrawStore, + reload as reloadStore, + } from 'src/stores/refresh' import { drawMandelbrot } from 'src/utils/draw' import { MAPS } from 'src/utils/maps' @@ -37,8 +40,12 @@ should_redraw() } function should_redraw() { + if ($reloadStore) return redrawStore.set(true) } + function should_reload() { + reloadStore.set(true) + } function reset() { drawStore.set('lx', -3) drawStore.set('rx', 1) @@ -54,7 +61,14 @@ {#if $settings.show_settings}