From 7adfc2ae2b37f2c8480bea2a0e9c7ce5840032f7 Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 10 Aug 2023 16:18:34 +0200 Subject: [PATCH] unnecessary settings update and test restart the website will be in the loading state at this point --- frontend/src/ts/controllers/account-controller.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/frontend/src/ts/controllers/account-controller.ts b/frontend/src/ts/controllers/account-controller.ts index 04f39b332..b528292d6 100644 --- a/frontend/src/ts/controllers/account-controller.ts +++ b/frontend/src/ts/controllers/account-controller.ts @@ -154,11 +154,7 @@ export async function getDataAndInit(): Promise { console.log("no local config, applying db"); AccountButton.loading(false); UpdateConfig.apply(snapshot.config); - Settings.update(); UpdateConfig.saveFullConfigToLocalStorage(true); - TestLogic.restart({ - nosave: true, - }); } else if (snapshot.config !== undefined) { //loading db config, keep for now let configsDifferent = false; @@ -199,13 +195,7 @@ export async function getDataAndInit(): Promise { console.log("configs are different, applying config from db"); AccountButton.loading(false); UpdateConfig.apply(snapshot.config); - Settings.update(); UpdateConfig.saveFullConfigToLocalStorage(true); - if (ActivePage.get() === "test") { - TestLogic.restart({ - nosave: true, - }); - } AccountButton.loading(true); DB.saveConfig(Config).then(() => { AccountButton.loading(false);