From 5b2199b6013b928cc08687702eabd25e361264c5 Mon Sep 17 00:00:00 2001 From: sparks-alec Date: Sun, 1 Oct 2023 01:45:47 -0400 Subject: [PATCH] Revert "Don't redraw device views when you click on them" This reverts commit f433a9983cc6dcaea451a9de6f84a9b98f5ab573. --- src/view.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/view.js b/src/view.js index d5c1ee4..1c144b1 100644 --- a/src/view.js +++ b/src/view.js @@ -183,12 +183,7 @@ function switchDevice(id) { } window.switchClass(document.getElementById(id), 'active-device'); - - if (!DEVICE.all[id].drawn) { - // don't re-draw the whole device frame if it's already drawn - drawDeviceFrame(id); - } - + drawDeviceFrame(id); window.switchClass(document.getElementById(`device-${id}`), 'active-device-outline'); document.getElementById('device-settings-table').style.display = 'block';