diff --git a/ivette/src/dome/src/renderer/data/settings.ts b/ivette/src/dome/src/renderer/data/settings.ts index 506a36557f98cc6fd849fdc3f39c6c73a79a7c71..6caf4ee61109c181fc0aa69b899803ee8298610b 100644 --- a/ivette/src/dome/src/renderer/data/settings.ts +++ b/ivette/src/dome/src/renderer/data/settings.ts @@ -227,13 +227,10 @@ function useSettings<A>( const [value, setValue] = React.useState<A>(loader); // Broadcast React.useEffect(() => { - if (K) { - const event = D.evt; - const callback = () => setValue(loader()); - SysEmitter.on(event, callback); - return () => { SysEmitter.off(event, callback); }; - } - return undefined; + const event = D.evt; + const callback = () => setValue(loader()); + SysEmitter.on(event, callback); + return () => { SysEmitter.off(event, callback); }; }); // Updates const updateValue = React.useCallback((newValue: A) => {