From c3b4742eeceee9250f8059972dd150f38e2eb021 Mon Sep 17 00:00:00 2001
From: "jakob.stendahl" <jakob.stendahl@infomedia.dk>
Date: Sun, 4 Dec 2022 13:33:45 +0100
Subject: Fix simulation stuttering (still resource intensive) and some oter
 QOL upgrades

---
 src_frontend/Components/Editor/Controls.svelte | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'src_frontend/Components/Editor/Controls.svelte')

diff --git a/src_frontend/Components/Editor/Controls.svelte b/src_frontend/Components/Editor/Controls.svelte
index 85450a5..36dd9f0 100644
--- a/src_frontend/Components/Editor/Controls.svelte
+++ b/src_frontend/Components/Editor/Controls.svelte
@@ -34,6 +34,10 @@
     });
 
     onMount(() => {
+        power_on = false;
+        brightnessValue = 0;
+        variables = {};
+
         openSocket.emit("power:get");
         openSocket.emit("brightness:get");
         openSocket.emit("vars:get")
@@ -100,4 +104,4 @@
         {/if}
     </div>
     {/each}
-</div>
\ No newline at end of file
+</div>
-- 
cgit v1.2.3

