fix rendering och refresh så det inte uppdatera sidan vid inställningar

This commit is contained in:
larssand
2026-08-27 14:47:24 +02:00
parent 808d5b2657
commit 32acc0e9c7
4 changed files with 59 additions and 7 deletions

View File

@@ -162,7 +162,7 @@ function connectDecoderRole(role, deps) {
state.decoder[lastErrorKey] = "";
saveState();
updateConnectionBadge();
if (["timing", "settings", "overlay"].includes(getCurrentView())) {
if (["timing", "overlay"].includes(getCurrentView())) {
renderView();
}
};
@@ -207,7 +207,7 @@ function connectDecoderRole(role, deps) {
}, 2000));
}
if (["timing", "settings", "overlay"].includes(getCurrentView())) {
if (["timing", "overlay"].includes(getCurrentView())) {
renderView();
}
};
@@ -216,7 +216,7 @@ function connectDecoderRole(role, deps) {
state.decoder[lastErrorKey] = t("error.decoder_connection");
saveState();
updateConnectionBadge();
if (["timing", "settings", "overlay"].includes(getCurrentView())) {
if (["timing", "overlay"].includes(getCurrentView())) {
renderView();
}
};