refactor: only calling ui functions when on the test page

This commit is contained in:
Miodec 2024-06-11 00:12:27 +02:00
parent ee340f4e22
commit 60570459cb

View file

@ -155,7 +155,7 @@ ConfigEvent.subscribe((eventKey, eventValue, nosave) => {
if (eventKey === "theme") void applyBurstHeatmap();
if (eventValue === undefined) return;
if (eventKey === "highlightMode") {
if (eventKey === "highlightMode" && ActivePage.get() === "test") {
highlightMode(eventValue as SharedTypes.Config.HighlightMode);
updateActiveElement();
}